]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: add ublk auto integrity test
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 21 Apr 2026 20:09:01 +0000 (14:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Apr 2026 10:52:43 +0000 (04:52 -0600)
commit1cdf3b28f46dd82caca39d72e401250ee43130ba
tree26a24aa4b3e701475f64dcf2a7874db7a500d032
parenteb3d1922120605e8934c75fde06b6ab85fc8699d
selftests: ublk: add ublk auto integrity test

The end-to-end integrity ublk selftest test_integrity_02 requires a
relatively recent fio version to support I/O with integrity buffers. Add
a version test_integrity_03 that uses the block layer's auto integrity
path instead. The auto integrity code doesn't check the application tag,
and doesn't indicate the bad guard/ref tag (just returns EILSEQ). But
it's a good smoke-test of the ublk integrity code and provides coverage
of the auto integrity path as well.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Link: https://patch.msgid.link/20260421200901.1528842-4-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/test_integrity_03.sh [new file with mode: 0755]