Skip to content

filesystem visibility ioctls

Kent Overstreet linux-btrfs linux-ext4 linux-fsdevel linux-xfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fs: super_block->s_uuid_lenfs/super.c include/linux/fs.h+2 -02 replies
2/6fs: FS_IOC_GETUUIDfs/ioctl.c include/uapi/linux/fs.h+32 -05 replies
3/6fat: Hook up sb->s_uuidfs/fat/inode.c+4 -00 replies
4/6fs: FS_IOC_GETSYSFSNAMEfs/ioctl.c include/linux/fs.h include/uapi/linux/fs.h+23 -07 replies
5/6xfs: add support for FS_IOC_GETSYSFSNAMEfs/xfs/xfs_mount.c+2 -00 replies
6/6bcachefs: add support for FS_IOC_GETSYSFSNAMEfs/bcachefs/fs.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] filesystem visibility ioctls

Hi all,

this patchset adds a few new ioctls to standardize a few interfaces we want
- get/set UUID
- get sysfs path

The get/set UUID ioctls are lifted versions of the ext4 ioctls with one difference, killing the flexible array member - we'll never have UUIDs more than 16 bytes, and getting rid of the flexible array member makes them easier to use.

FS_IOC_GETSYSFSNAME is new, but it addresses something that we've been doing in fs specific code for awhile - "given a path on a mounted filesystem, tell me where it lives in sysfs".

Cheers,
Kent

Kent Overstreet (6):
fs: super_block->s_uuid_len
fs: FS_IOC_GETUUID
fat: Hook up sb->s_uuid
fs: FS_IOC_GETSYSFSNAME
xfs: add support for FS_IOC_GETSYSFSNAME
bcachefs: add support for FS_IOC_GETSYSFSNAME

 fs/bcachefs/fs.c        |  1 +
 fs/fat/inode.c          |  4 ++++
 fs/ioctl.c              | 33 +++++++++++++++++++++++++++++++++
 fs/super.c              |  1 +
 fs/xfs/xfs_mount.c      |  2 ++
 include/linux/fs.h      |  2 ++
 include/uapi/linux/fs.h | 21 +++++++++++++++++++++
 7 files changed, 64 insertions(+)
Signature · 1 line
2.43.0