Recent commit fixed assertion failure observed with zone_reset_threshold and zone_reset_frequency options together with verify. Add a test case to confirm the fix. Run four types of workloads and confirm no error. Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> --- t/zbd/test-zbd-support | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index e17a81de..a1e68eea 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -1276,6 +1276,24 @@ test58() { >>"${logfile}.${test_number}" 2>&1 } +# Test zone_reset_threshold with verify. +test59() { + local off bs loops=2 size=$((zone_size)) w + local -a workloads=(write randwrite rw randrw) + + prep_write + off=$((first_sequential_zone_sector * 512)) + + bs=$(min $((256*1024)) "$zone_size") + for w in "${workloads[@]}"; do + run_fio_on_seq "$(ioengine "psync")" --rw=${w} --bs="$bs" \ + --size=$size --loops=$loops --do_verify=1 \ + --verify=md5 --zone_reset_frequency=.9 \ + --zone_reset_threshold=.1 \ + >> "${logfile}.${test_number}" 2>&1 || return $? + done +} + SECONDS=0 tests=() dynamic_analyzer=() -- 2.37.1