Skip to content

Commit c4b3c13

Browse files
Liao Chendamien-lemoal
authored andcommitted
zonefs: 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 zonefs, it will output "zonefs/<dev>". Signed-off-by: Liao Chen <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 47ac09b commit c4b3c13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/zonefs/sysfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ int zonefs_sysfs_register(struct super_block *sb)
9292
struct zonefs_sb_info *sbi = ZONEFS_SB(sb);
9393
int ret;
9494

95+
super_set_sysfs_name_id(sb);
9596
init_completion(&sbi->s_kobj_unregister);
9697
ret = kobject_init_and_add(&sbi->s_kobj, &zonefs_sb_ktype,
9798
zonefs_sysfs_root, "%s", sb->s_id);

0 commit comments

Comments
 (0)