t/zbd: add test case to confirm verify_backlog=1 options
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 30 Apr 2024 10:30:21 +0000 (19:30 +0900)
committerVincent Fu <vincent.fu@samsung.com>
Tue, 30 Apr 2024 15:11:58 +0000 (11:11 -0400)
The previous commit fixed the verify failure due to the zone reset with
the verify_backlog option. Add a test to confirm the fix.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20240430103022.4136039-3-shinichiro.kawasaki@wdc.com
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/zbd/test-zbd-support

index c27d2ad68a7cde4ff05150f431ae81d63b248f93..ef98835cb8f4cc693ec3afecd239fd04ead0fe50 100755 (executable)
@@ -1593,6 +1593,18 @@ test68() {
        [[ $(grep -c "WRITE:" "${logfile}.${test_number}") == 1 ]]
 }
 
+# Test rw=rw and verify_backlog=1 options do not cause verify failure
+test69() {
+       require_zbd || return "$SKIP_TESTCASE"
+
+       prep_write
+       run_fio --name=job --filename="$dev" --time_based --runtime=15s \
+               --rw=rw --offset=$((first_sequential_zone_sector * 512)) \
+               "$(ioengine "libaio")" --iodepth=32 --randrepeat=0 \
+               --verify=crc32 --verify_backlog=1 --zonemode=zbd --direct=1 \
+               >> "${logfile}.${test_number}" 2>&1 || return $?
+}
+
 SECONDS=0
 tests=()
 dynamic_analyzer=()