Skip to content

blktests: add tests with offsets

Keith Busch linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 9 repliesIn review

Changes for the previous version from the cover letter

- 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2blktests: test direct io offsetssrc/.gitignore src/Makefile src/dio-offsets.c +2 more+738 -08 replies
2/2blktests: test io_uring user metadata offsetssrc/.gitignore src/Makefile src/metadata.c +2 more+532 -81 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChaitanya Kulkarni
1/2R-b
2/2R-b

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/2] blktests: add tests with offsets

From: Keith Busch <[email protected]>

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
Signature · 1 line
2.47.3