mbox series

[v3,0/3] xfsprogs: Add support for preadv2() and RWF_DONTCACHE

Message ID cover.1741340857.git.ritesh.list@gmail.com (mailing list archive)
Headers show
Series xfsprogs: Add support for preadv2() and RWF_DONTCACHE | expand

Message

Ritesh Harjani (IBM) March 15, 2025, 8:20 a.m. UTC
This adds following support to xfs_io:
- Support for preadv2()
- Support for uncached buffered I/O (RWF_DONTCACHE) for preadv2() and pwritev2()

v2 -> v3:
==========
1. Minor update for -U option description.
2. Added reviewed-bys of Darrick.
[v2]: https://lore.kernel.org/linux-xfs/cover.1741170031.git.ritesh.list@gmail.com

v1 -> v2:
========
1. Based on pwritev2 autoconf support enable HAVE_PREADV2 support.
2. Check if preadv2/pwritev2 flags are passed w/o -V argument
3. Fixed space before tabs issue.
[v1]: https://lore.kernel.org/linux-xfs/cover.1741087191.git.ritesh.list@gmail.com/#t

Ritesh Harjani (IBM) (3):
  xfs_io: Add support for preadv2
  xfs_io: Add RWF_DONTCACHE support to pwritev2
  xfs_io: Add RWF_DONTCACHE support to preadv2

 include/linux.h   |  5 ++++
 io/Makefile       |  2 +-
 io/pread.c        | 62 ++++++++++++++++++++++++++++++++++-------------
 io/pwrite.c       | 14 +++++++++--
 man/man8/xfs_io.8 | 16 ++++++++++--
 5 files changed, 77 insertions(+), 22 deletions(-)

--
2.48.1

Comments

Jens Axboe March 15, 2025, 12:49 p.m. UTC | #1
On 3/15/25 2:20 AM, Ritesh Harjani (IBM) wrote:
> This adds following support to xfs_io:
> - Support for preadv2()
> - Support for uncached buffered I/O (RWF_DONTCACHE) for preadv2() and pwritev2()

Looks good to me:

Reviewed-by: Jens Axboe <axboe@kernel.dk>