diff options
author | Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> | 2024-04-30 19:30:21 +0900 |
---|---|---|
committer | Vincent Fu <vincent.fu@samsung.com> | 2024-04-30 11:11:58 -0400 |
commit | 06eb4c1f131b667b0ffbaf167af34b5f04691554 (patch) | |
tree | 22005c114294ef3efe7e2b8eed37b4165839fedf | |
parent | 0c9c3a9b053b47543e38dd7242b9bfdf30f851e6 (diff) | |
download | fio-06eb4c1f131b667b0ffbaf167af34b5f04691554.tar.gz |
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 <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>
-rwxr-xr-x | t/zbd/test-zbd-support | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index c27d2ad68..ef98835cb 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=() |