Skip to content

Commit cc69a68

Browse files
hsiaoh2hsiangkao
authored andcommitted
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: Huang Xiaojia <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Reviewed-by: Chao Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
1 parent 9d01f6f commit cc69a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/erofs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int erofs_read_superblock(struct super_block *sb)
343343
sbi->build_time = le64_to_cpu(dsb->build_time);
344344
sbi->build_time_nsec = le32_to_cpu(dsb->build_time_nsec);
345345

346-
memcpy(&sb->s_uuid, dsb->uuid, sizeof(dsb->uuid));
346+
super_set_uuid(sb, (void *)dsb->uuid, sizeof(dsb->uuid));
347347

348348
ret = strscpy(sbi->volume_name, dsb->volume_name,
349349
sizeof(dsb->volume_name));

0 commit comments

Comments
 (0)