Recent commit fix assertion failure observed with zone_reset_threshold option with verify. Add a test case to confirm the fix. Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> Tested-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx> Reviewed-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx> --- t/zbd/test-zbd-support | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index e17a81de..0e185997 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -1276,6 +1276,20 @@ test58() { >>"${logfile}.${test_number}" 2>&1 } +# Test zone_reset_threshold with verify. +test59() { + local off bs loops=2 size=$((zone_size)) + + prep_write + off=$((first_sequential_zone_sector * 512)) + + bs=$(min $((256*1024)) "$zone_size") + run_fio_on_seq "$(ioengine "psync")" --rw=write --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 $? +} + SECONDS=0 tests=() dynamic_analyzer=() -- 2.37.1