aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/lpt_commit.c
diff options
context:
space:
mode:
authorHongbo Li <[email protected]>2024-08-26 09:17:00 +0000
committerRichard Weinberger <[email protected]>2024-11-14 16:57:15 +0000
commit39ba2b9ac6fd61c67c83b8fd2a3ec6b0bea89490 (patch)
tree03f7fcdc9c371d3e1b858c96369d72ac4afe2401 /fs/ubifs/lpt_commit.c
parentubifs: remove unused ioctl flags GETFLAGS/SETFLAGS (diff)
downloadkernel-39ba2b9ac6fd61c67c83b8fd2a3ec6b0bea89490.tar.gz
kernel-39ba2b9ac6fd61c67c83b8fd2a3ec6b0bea89490.zip
ubifs: add support for FS_IOC_GETFSSYSFSPATH
In commit ae8c51175730 ("fs: add FS_IOC_GETFSSYSFSPATH"), a new fs ioctl was introduced to standardize exporting data from sysfs across filesystems. The returned path will always be of the form "$FSTYP/$SYSFS_IDENTIFIER", where the sysfs identifier may be a UUID or a device name. The ubifs is a file system based on char device, and the common method to fill s_sysfs_name (super_set_sysfs_name_bdev) is unavialable. So in order to support FS_IOC_GETFSSYSFSPATH ioctl, we fill the s_sysfs_name with ubi_volume_info member which keeps the format defined in macro UBIFS_DFS_DIR_NAME by using super_set_sysfs_name_generic. That's for ubifs, it will output "ubifs/<dev>". ``` $ ./ioctl_getfssysfs_path /mnt/ubifs/testfile path: ubifs/ubi0_0 $ ls /sys/fs/ubifs/ubi0_0/ errors_crc errors_magic errors_node ``` Signed-off-by: Hongbo Li <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'fs/ubifs/lpt_commit.c')
0 files changed, 0 insertions, 0 deletions