diff options
author | Ryusuke Konishi <konishi.ryusuke@gmail.com> | 2024-08-15 09:44:06 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-02 05:43:34 +0200 |
commit | 8d1dba2e7cc74381087ae8ef03673abee758fcd0 (patch) | |
tree | 20ac911e6d7f243f8026f81ef55056cbb3e60e84 /fs/nilfs2 | |
parent | nilfs2: add support for FS_IOC_GETUUID (diff) | |
download | linux-8d1dba2e7cc74381087ae8ef03673abee758fcd0.tar.xz linux-8d1dba2e7cc74381087ae8ef03673abee758fcd0.zip |
nilfs2: add support for FS_IOC_GETFSSYSFSPATH
Use the standard helper super_set_sysfs_name_bdev() to give the sysfs
subpath of the filesystem for the FS_IOC_GETFSSYSFSPATH ioctl.
For nilfs2, it will output "nilfs2/<dev>".
Link: https://lkml.kernel.org/r/20240815074408.5550-3-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 167050b3ce7e..76e35e6773d1 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -1065,6 +1065,7 @@ nilfs_fill_super(struct super_block *sb, struct fs_context *fc) super_set_uuid(sb, nilfs->ns_sbp[0]->s_uuid, sizeof(nilfs->ns_sbp[0]->s_uuid)); + super_set_sysfs_name_bdev(sb); cno = nilfs_last_cno(nilfs); err = nilfs_attach_checkpoint(sb, cno, true, &fsroot); |