From: Shin'ichiro Kawasaki Date: Thu, 8 Jun 2023 07:06:06 +0000 (+0900) Subject: t/zbd: reset zones before tests with max_open_zones option X-Git-Tag: fio-3.36~82 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5b4c9c4efa00527806625273ebf0769d4e3bbe8e;p=fio.git t/zbd: reset zones before tests with max_open_zones option After the recent fix, fio no longer resets zones when it finds more zones in open condition than the max_open_zones option. This results in failure of test cases 12, 13, 29, 32, 48 and 51. To avoid the failures, reset zones at the beginning of the test cases. Signed-off-by: Shin'ichiro Kawasaki Signed-off-by: Vincent Fu --- diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index 996160e7..86577952 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -460,7 +460,8 @@ test11() { test12() { local size off capacity - prep_write + [ -n "$is_zbd" ] && reset_zone "$dev" -1 + size=$((8 * zone_size)) off=$((first_sequential_zone_sector * 512)) capacity=$(total_zone_capacity 8 $off $dev) @@ -477,7 +478,8 @@ test13() { require_max_open_zones 4 || return $SKIP_TESTCASE - prep_write + [ -n "$is_zbd" ] && reset_zone "$dev" -1 + size=$((8 * zone_size)) off=$((first_sequential_zone_sector * 512)) capacity=$(total_zone_capacity 8 $off $dev) @@ -726,7 +728,9 @@ test29() { require_seq_zones 80 || return $SKIP_TESTCASE off=$((first_sequential_zone_sector * 512 + 64 * zone_size)) size=$((16*zone_size)) - prep_write + + [ -n "$is_zbd" ] && reset_zone "$dev" -1 + opts=("--debug=zbd") for ((i=0;i