From 06eb4c1f131b667b0ffbaf167af34b5f04691554 Mon Sep 17 00:00:00 2001 From: Shin'ichiro Kawasaki Date: Tue, 30 Apr 2024 19:30:21 +0900 Subject: [PATCH] t/zbd: add test case to confirm verify_backlog=1 options 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 Link: https://lore.kernel.org/r/20240430103022.4136039-3-shinichiro.kawasaki@wdc.com Signed-off-by: Vincent Fu --- t/zbd/test-zbd-support | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index c27d2ad6..ef98835c 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -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=() -- 2.25.1