]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: add end-to-end integrity test
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 8 Jan 2026 09:19:47 +0000 (02:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 16:16:38 +0000 (09:16 -0700)
commit78796b6bae8684b753b658f431b5b1ee24300d64
tree4a7867ca24ec31f6838f9a897ae134c335c8c448
parent9e9f635525b12f055558a7cfe2e54d109839d030
selftests: ublk: add end-to-end integrity test

Add test case loop_08 to verify the ublk integrity data flow. It uses
the kublk loop target to create a ublk device with integrity on top of
backing data and integrity files. It then writes to the whole device
with fio configured to generate integrity data. Then it reads back the
whole device with fio configured to verify the integrity data.
It also verifies that injected guard, reftag, and apptag corruptions are
correctly detected.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/test_loop_08.sh [new file with mode: 0755]