]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: ublk: fix fio arguments in run_io_and_recover()
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 12 Dec 2025 17:17:02 +0000 (10:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Dec 2025 19:50:40 +0000 (12:50 -0700)
commit58eec4f3fc2878de51239916953b736b674d5071
tree8e1b4a774703c6b1af5fb92b8200ff144cf3c5a8
parentfe8c0182d49414740e639c1ca6b7d4b8e36b77fe
selftests: ublk: fix fio arguments in run_io_and_recover()

run_io_and_recover() invokes fio with --size="${size}", but the variable
size doesn't exist. Thus, the argument expands to --size=, which causes
fio to exit immediately with an error without issuing any I/O. Pass the
value for size as the first argument to the function.

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/test_common.sh
tools/testing/selftests/ublk/test_generic_04.sh
tools/testing/selftests/ublk/test_generic_05.sh
tools/testing/selftests/ublk/test_generic_11.sh