f2fs: add support for FS_IOC_GETFSSYSFSPATH
Chao Yu
maintainerPATCH 1/1 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>".
--- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+)
fs/f2fs/super.c +1 -0
@@ -4481,6 +4481,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) sb->s_flags = (sb->s_flags & ~SB_POSIXACL ) | (test_opt (sbi,POSIX_ACL ) ?SB_POSIXACL :0 );super_set_uuid (sb, (void *) raw_super->uuid,sizeof (raw_super->uuid)); +super_set_sysfs_name_bdev (sb); sb->s_iflags |=SB_I_CGROUPWB ;/* init f2fs-specific super block info */
Signature · 1 line
2.40.1
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 8 lines · On Wed, 15 May 2024 16:12:33 +0800 you wrote:
FS_IOC_GETFSSYSFSPATHioctl 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_GETFSSYSFSPATHfor f2fs, it will output "f2fs/<dev>".[...]
Here is the summary with links:
- [f2fs-dev] f2fs: add support for FS_IOC_GETFSSYSFSPATH
https://git.kernel.org/jaegeuk/f2fs/c/cc260b66c4cd
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html