diff --git a/test/dd/bdev_to_bdev.sh b/test/dd/bdev_to_bdev.sh index acb2ec4c37..ad84915e59 100755 --- a/test/dd/bdev_to_bdev.sh +++ b/test/dd/bdev_to_bdev.sh @@ -9,7 +9,7 @@ offset_magic() { local magic_check local offsets offset - offsets=(16 256 1024) # * bs + offsets=(16 64) # * bs for offset in "${offsets[@]}"; do "${DD_APP[@]}" \ @@ -34,9 +34,9 @@ offset_magic() { } cleanup() { - # Zero up to 1G on input|output bdev - clear_nvme "$bdev0" "" $((0x40000000 + ${#magic})) - clear_nvme "$bdev1" "" $((0x40000000 + ${#magic})) + # Zero up to 64M on input|output bdev + clear_nvme "$bdev0" "" $((0x400000 + ${#magic})) + clear_nvme "$bdev1" "" $((0x400000 + ${#magic})) rm -f "$test_file0" "$test_file1" "$aio1" } @@ -74,12 +74,12 @@ else ["block_size"]=4096 ) - # 2G AIO file + # 256MB AIO file "${DD_APP[@]}" \ --if=/dev/zero \ --of="$aio1" \ --bs="$bs" \ - --count=2048 + --count=256 fi test_file0=$SPDK_TEST_STORAGE/dd.dump0 @@ -88,14 +88,14 @@ test_file1=$SPDK_TEST_STORAGE/dd.dump1 magic="This Is Our Magic, find it" echo "$magic" > "$test_file0" -# Make the file a bit bigger (~512MB) +# Make the file a bit bigger (~64MB) run_test "dd_inflate_file" \ "${DD_APP[@]}" \ --if=/dev/zero \ --of="$test_file0" \ --oflag=append \ --bs="$bs" \ - --count=512 + --count=64 test_file0_size=$(wc -c < "$test_file0")