OSDN Git Service

btrfs: sysfs: export supported checksums
authorDavid Sterba <dsterba@suse.com>
Mon, 7 Oct 2019 09:11:03 +0000 (11:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 16:51:43 +0000 (17:51 +0100)
commitf7cea56c0fff95bd5a6cd21b9fa299f66193b604
treee59752010527d9314d500aec9542f17c98279092
parent3831bf0094abed51e71cbeca8b6edf8b88c2644b
btrfs: sysfs: export supported checksums

Export supported checksum algorithms via sysfs in the list of static
features:

  /sys/fs/btrfs/features/supported_checksums

Space spearated list of checksum algorithm names.

Co-developed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/sysfs.c