[PATCHv2 0/2] blktests: add tests with offsets

Keith Busch
2025-11-19T19:54:57Z

From: Keith Busch <kbusch@kernel.org>

Here are the tests I've been using to check the kernel's handling for IO
using non-block aligned memory offsets for data and metadata.

Changes for the previous version:

- Combining the io_uring metadata test in one series

- Removed all the extra code that tries to discover the queue limits
from the file path. The test case will simply pass these through
from sysfs attributes that it knows about.

- Removed the linux kernel version specific checks to decide if a test
should pass or fail. We just assume a failure means the kernel
doesn't support it and carry on.

- Fixed up the test dependencies for the metadata test, and wording

- Fixed up requests from previous review comments.

Keith Busch (2):
blktests: test direct io offsets
blktests: test io_uring user metadata offsets

src/.gitignore | 2 +
src/Makefile | 17 +-
src/dio-offsets.c | 708 ++++++++++++++++++++++++++++++++++++++++++++
src/metadata.c | 488 ++++++++++++++++++++++++++++++
tests/block/042 | 26 ++
tests/block/042.out | 2 +
tests/block/043 | 33 +++
tests/block/043.out | 2 +
8 files changed, 1270 insertions(+), 8 deletions(-)
create mode 100644 src/dio-offsets.c
create mode 100644 src/metadata.c
create mode 100644 tests/block/042
create mode 100644 tests/block/042.out
create mode 100755 tests/block/043
create mode 100644 tests/block/043.out

--
2.47.3