btrfs: add metadata_uuid to FS_INFO ioctl
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 Jul 2020 12:29:00 +0000 (21:29 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:43 +0000 (12:55 +0200)
commit49bac897683340457a0ab1f76b924a1220bdb604
tree4a50383d6c465d8e11d4838153c28382f35f1ddd
parent0fb408a558aadbaa58beb75b02c95741e1fbb514
btrfs: add metadata_uuid to FS_INFO ioctl

Add retrieval of the filesystem's metadata UUID to the fsinfo ioctl.
This is driven by setting the BTRFS_FS_INFO_FLAG_METADATA_UUID flag in
btrfs_ioctl_fs_info_args::flags.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
include/uapi/linux/btrfs.h