From 5b4c9c4efa00527806625273ebf0769d4e3bbe8e Mon Sep 17 00:00:00 2001 From: Shin'ichiro Kawasaki Date: Thu, 8 Jun 2023 16:06:06 +0900 Subject: [PATCH] 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 --- t/zbd/test-zbd-support | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index 996160e769..8657795226 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