Skip to content

direct-io file extended attributes

Keith Busch linux-block linux-ext4 linux-f2fs-devel linux-fsdevel linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 9 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fs: add direct io attributes to file_getattrfs/file_attr.c include/linux/fileattr.h include/uapi/linux/fs.h+24 -31 reply
2/5block: report direct io attributes through file_getattrblock/bdev.c fs/file_attr.c include/linux/blkdev.h+56 -11 reply
3/5xfs: report direct io attributes through file_getattrfs/xfs/xfs_ioctl.c+26 -03 replies
4/5ext4: report direct io attributes through file_getattrfs/ext4/ioctl.c+23 -00 replies
5/5f2fs: report direct io attributes through file_getattrfs/f2fs/file.c+20 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/5R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 0/5] direct-io file extended attributes

From: Keith Busch <[email protected]>

The attributes reported through statx are incomplete for applications to fully know exactly how IO construction is valid or not. The statx call can report minimum memory alignment and total granularity, but it doesn't show the underlying gap boundary requirements or max segments per granule.

This series adds the minimum to the extended file attributes through file_getattr. I hear this is the preferred interface for reporting such things over adding more fields to statx. In order to get everything under a single syscall, some of the attributes are duplicated from statx.

Keith Busch (5):
fs: add direct io attributes to file_getattr
block: report direct io attributes through file_getattr
xfs: report direct io attributes through file_getattr
ext4: report direct io attributes through file_getattr
f2fs: report direct io attributes through file_getattr

 block/bdev.c             | 37 +++++++++++++++++++++++++++++++++++++
 fs/ext4/ioctl.c          | 23 +++++++++++++++++++++++
 fs/f2fs/file.c           | 20 ++++++++++++++++++++
 fs/file_attr.c           | 13 ++++++++++++-
 fs/xfs/xfs_ioctl.c       | 26 ++++++++++++++++++++++++++
 include/linux/blkdev.h   | 14 ++++++++++++++
 include/linux/fileattr.h | 10 ++++++++--
 include/uapi/linux/fs.h  | 10 +++++++++-
 8 files changed, 149 insertions(+), 4 deletions(-)
Signature · 1 line
2.53.0-Meta