diff options
author | Liao Chen <liaochen4@huawei.com> | 2024-08-20 02:20:29 +0000 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2024-08-20 17:46:54 +0900 |
commit | c4b3c1332f55c48785e6661cebeb7269a92a45fd (patch) | |
tree | 92fd5e7371c838e7875a2f5e8ba9529364562be4 /fs/zonefs | |
parent | 47ac09b91befbb6a235ab620c32af719f8208399 (diff) |
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 <liaochen4@huawei.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'fs/zonefs')
-rw-r--r-- | fs/zonefs/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/zonefs/sysfs.c b/fs/zonefs/sysfs.c index 8ccb65c2b419..ff9a688f1f9c 100644 --- a/fs/zonefs/sysfs.c +++ b/fs/zonefs/sysfs.c @@ -92,6 +92,7 @@ int zonefs_sysfs_register(struct super_block *sb) struct zonefs_sb_info *sbi = ZONEFS_SB(sb); int ret; + super_set_sysfs_name_id(sb); init_completion(&sbi->s_kobj_unregister); ret = kobject_init_and_add(&sbi->s_kobj, &zonefs_sb_ktype, zonefs_sysfs_root, "%s", sb->s_id); |