Message ID | 20240624064218.2476312-1-huangxiaojia2@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [-next] btrfs: add support for FS_IOC_GETFSSYSFSPATH | expand |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index f05cce7c8b8d..9372166cdb8c 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -963,6 +963,7 @@ static int btrfs_fill_super(struct super_block *sb, } sb->s_flags |= SB_ACTIVE; + super_set_sysfs_name_uuid(sb); return 0; fail_close:
FS_IOC_GETFSSYSFSPATH ioctl exposes /sys/fs path of a given filesystem, potentially standarizing sysfs reporting. This patch add support for FS_IOC_GETFSSYSFSPATH for btrfs, "btrfs/<uuid>" will be outpt. Signed-off-by: Huang Xiaojia <huangxiaojia2@huawei.com> --- fs/btrfs/super.c | 1 + 1 file changed, 1 insertion(+)