]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16227de4457114be909c1bf96d8077c2e7e35484
tree662c1fa61cb05beacff9db9b545f71e6b28f0878
parent82a5aef16f093f25ea9b71eabb1b4dbfb0486621
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