Skip to content

Commit cc260b6

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: add support for FS_IOC_GETFSSYSFSPATH
FS_IOC_GETFSSYSFSPATH ioctl expects sysfs sub-path of a filesystem, the format can be "$FSTYP/$SYSFS_IDENTIFIER" under /sys/fs, it can helps to standardizes exporting sysfs datas across filesystems. This patch wires up FS_IOC_GETFSSYSFSPATH for f2fs, it will output "f2fs/<dev>". Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent c240c87 commit cc260b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4481,6 +4481,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
44814481
sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
44824482
(test_opt(sbi, POSIX_ACL) ? SB_POSIXACL : 0);
44834483
super_set_uuid(sb, (void *) raw_super->uuid, sizeof(raw_super->uuid));
4484+
super_set_sysfs_name_bdev(sb);
44844485
sb->s_iflags |= SB_I_CGROUPWB;
44854486

44864487
/* init f2fs-specific super block info */

0 commit comments

Comments
 (0)