Switch to use _configure_null_blk so that built-in null_blk can be supported, which implies not using the default nullb0 device. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- tests/block/023 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/block/023 b/tests/block/023 index 0f20f4a..db1cbe0 100755 --- a/tests/block/023 +++ b/tests/block/023 @@ -21,10 +21,11 @@ test() { local queue_mode for queue_mode in 0 2; do - if _init_null_blk gb=1 queue_mode="$queue_mode"; then + if _configure_null_blk nullb1 size=1024 \ + queue_mode="$queue_mode" power=1; then echo "Queue mode $queue_mode" - dd if=/dev/nullb0 of=/dev/null iflag=direct bs=64k status=none - dd if=/dev/null of=/dev/nullb0 oflag=direct bs=64k status=none + dd if=/dev/nullb1 of=/dev/null iflag=direct bs=64k status=none + dd if=/dev/null of=/dev/nullb1 oflag=direct bs=64k status=none _exit_null_blk fi done -- 2.30.2