mirror-linux/tools/testing/selftests/ublk
Ming Lei 730d837979 selftests: ublk: fix UBLK_F_NEED_GET_DATA
Commit 57e13a2e8c ("selftests: ublk: support user recovery") starts to
support UBLK_F_NEED_GET_DATA for covering recovery feature, however the
ublk utility implementation isn't done correctly.

Fix it by supporting UBLK_F_NEED_GET_DATA correctly.

Also add test generic_07 for covering UBLK_F_NEED_GET_DATA.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Fixes: 57e13a2e8c ("selftests: ublk: support user recovery")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250429022941.1718671-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-04-29 06:01:36 -06:00
..
trace selftests: ublk: add generic_01 for verifying sequential IO order 2025-03-22 08:35:08 -06:00
.gitignore
Makefile selftests: ublk: fix UBLK_F_NEED_GET_DATA 2025-04-29 06:01:36 -06:00
common.c selftests: ublk: move common code into common.c 2025-03-22 08:35:08 -06:00
config
fault_inject.c selftests: ublk: add generic_06 for covering fault inject 2025-04-16 19:33:21 -06:00
file_backed.c selftests: ublk: simplify loop io completion 2025-03-22 08:35:08 -06:00
kublk.c selftests: ublk: fix UBLK_F_NEED_GET_DATA 2025-04-29 06:01:36 -06:00
kublk.h selftests: ublk: fix UBLK_F_NEED_GET_DATA 2025-04-29 06:01:36 -06:00
null.c selftests: ublk: add test for checking zero copy related parameter 2025-03-28 16:15:43 -06:00
stripe.c selftests: ublk: support target specific command line 2025-04-16 19:32:18 -06:00
test_common.sh selftests: ublk: common: fix _get_disk_dev_t for pre-9.0 coreutils 2025-04-24 06:30:54 -06:00
test_generic_01.sh selftests: ublk: add generic_01 for verifying sequential IO order 2025-03-22 08:35:08 -06:00
test_generic_02.sh selftests: ublk: add more tests for covering MQ 2025-03-28 16:15:43 -06:00
test_generic_03.sh selftests: ublk: add test for checking zero copy related parameter 2025-03-28 16:15:43 -06:00
test_generic_04.sh selftests: ublk: support user recovery 2025-04-16 19:32:18 -06:00
test_generic_05.sh selftests: ublk: fix recover test 2025-04-23 13:58:55 -06:00
test_generic_06.sh selftests: ublk: add generic_06 for covering fault inject 2025-04-16 19:33:21 -06:00
test_generic_07.sh selftests: ublk: fix UBLK_F_NEED_GET_DATA 2025-04-29 06:01:36 -06:00
test_loop_01.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_02.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_03.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_04.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_05.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_null_01.sh selftests: ublk: improve test usability 2025-03-10 16:24:42 -06:00
test_null_02.sh selftests: ublk: enable zero copy for null target 2025-03-22 08:35:08 -06:00
test_stress_01.sh selftests: ublk: run stress tests in parallel 2025-04-16 19:32:18 -06:00
test_stress_02.sh selftests: ublk: run stress tests in parallel 2025-04-16 19:32:18 -06:00
test_stress_03.sh selftests: ublk: add two stress tests for zero copy feature 2025-04-16 19:32:18 -06:00
test_stress_04.sh selftests: ublk: add two stress tests for zero copy feature 2025-04-16 19:32:18 -06:00
test_stress_05.sh selftests: ublk: fix UBLK_F_NEED_GET_DATA 2025-04-29 06:01:36 -06:00
test_stripe_01.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_stripe_02.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_stripe_03.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_stripe_04.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
ublk_dep.h selftests: ublk: add one dependency header 2025-03-20 17:18:55 -06:00