Commit cc69a681 authored by Huang Xiaojia's avatar Huang Xiaojia Committed by Gao Xiang

erofs: convert to use super_set_uuid to support for FS_IOC_GETFSUUID

FS_IOC_GETFSUUID ioctl exposes the uuid of a filesystem. To support
the ioctl, init sb->s_uuid with super_set_uuid().
Signed-off-by: default avatarHuang Xiaojia <huangxiaojia2@huawei.com>
Reviewed-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20240624063704.2476070-1-huangxiaojia2@huawei.comSigned-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
parent 9d01f6f6
...@@ -343,7 +343,7 @@ static int erofs_read_superblock(struct super_block *sb) ...@@ -343,7 +343,7 @@ static int erofs_read_superblock(struct super_block *sb)
sbi->build_time = le64_to_cpu(dsb->build_time); sbi->build_time = le64_to_cpu(dsb->build_time);
sbi->build_time_nsec = le32_to_cpu(dsb->build_time_nsec); sbi->build_time_nsec = le32_to_cpu(dsb->build_time_nsec);
memcpy(&sb->s_uuid, dsb->uuid, sizeof(dsb->uuid)); super_set_uuid(sb, (void *)dsb->uuid, sizeof(dsb->uuid));
ret = strscpy(sbi->volume_name, dsb->volume_name, ret = strscpy(sbi->volume_name, dsb->volume_name,
sizeof(dsb->volume_name)); sizeof(dsb->volume_name));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment