mbox series

[v2,0/4] Introduce FS_IOC_FSSETXATTRAT/FS_IOC_FSGETXATTRAT ioctls

Message ID 20240520164624.665269-2-aalbersh@redhat.com (mailing list archive)
Headers show
Series Introduce FS_IOC_FSSETXATTRAT/FS_IOC_FSGETXATTRAT ioctls | expand

Message

Andrey Albershteyn May 20, 2024, 4:46 p.m. UTC
Hi all,

This patchset adds new ioctl for setting/getting inode extended
attributes on fs inodes, useful for special files which return VFS
inode on open() and therefore FS_IOC_FSSETXATTR can not be used.
This roots from xfs_quota not being able to set project IDs on
special files [1].

[1]: https://lore.kernel.org/linux-xfs/20240314170700.352845-3-aalbersh@redhat.com/

Andrey Albershteyn (4):
  xfs: allow renames of project-less inodes
  fs: add FS_IOC_FSSETXATTRAT and FS_IOC_FSGETXATTRAT
  xfs: allow setting xattrs on special files
  xfs: add fileattr_set/get for symlinks

 fs/ioctl.c              | 93 +++++++++++++++++++++++++++++++++++++++++
 fs/xfs/xfs_inode.c      | 64 +++++++++++++++-------------
 fs/xfs/xfs_ioctl.c      |  6 ---
 fs/xfs/xfs_iops.c       |  2 +
 include/uapi/linux/fs.h | 11 +++++
 5 files changed, 140 insertions(+), 36 deletions(-)