OSDN Git Service

btrfs: Add sysfs support for metadata_uuid feature
authorNikolay Borisov <nborisov@suse.com>
Mon, 19 Nov 2018 15:37:45 +0000 (17:37 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:37 +0000 (14:51 +0100)
commit56f20f4009d3c0b2e6165d9136fed40028c8225d
tree662c1fa61cb05beacff9db9b545f71e6b28f0878
parent7239ff4b2be8ec0c3160da7fdd1475785fdb4cb9
btrfs: Add sysfs support for metadata_uuid feature

Since the metadata_uuid is a new incompat feature it requires the
respective sysfs hooks. This patch adds the 'metdata_uuid' feature to
be shown if it supported by the kernel. Additionally it adds
/sys/fs/btrfs/UUID/metadata_uuid attribute which allows one to read
the current metadata_uuid.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c