]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: ublk: fix UBLK_F_NEED_GET_DATA
authorMing Lei <ming.lei@redhat.com>
Tue, 29 Apr 2025 02:29:36 +0000 (10:29 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Apr 2025 12:01:36 +0000 (06:01 -0600)
commit730d837979bac203c786f2c5b0707f5426275c0d
treebd46fdacd40e1f9f438781e621cb9d92972559ea
parentf40139fde5278d81af3227444fd6e76a76b9506d
selftests: ublk: fix UBLK_F_NEED_GET_DATA

Commit 57e13a2e8cd2 ("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: 57e13a2e8cd2 ("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>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/kublk.c
tools/testing/selftests/ublk/kublk.h
tools/testing/selftests/ublk/test_generic_07.sh [new file with mode: 0755]
tools/testing/selftests/ublk/test_stress_05.sh