From 3b188772696ed3738340a2aaddd401e7de1f290c Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Fri, 2 May 2025 18:02:14 +0200 Subject: [PATCH] ZTS: Fix replacement/resilver_restart_001 on FreeBSD Decrease the RESILVER_MIN_TIME_MS variable from 50 to 20. So the test, which expects two 2 resilver starts will see them. Logfile of the seen failures before this fix: log: NOTE: expected 2 resilver start(s) after offline/online, found 1 log: expected 2 resilver start(s) after offline/online, found 1 The test time decreases also from around 00:42 to 00:24 seconds. Reviewed-by: Tony Hutter Reviewed-by: Alexander Motin Signed-off-by: Tino Reichardt Closes #16822 Closes #17279 --- .../tests/functional/replacement/resilver_restart_001.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh b/tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh index e9a068058..f1e42ff7d 100755 --- a/tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh +++ b/tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh @@ -154,7 +154,7 @@ do log_must zpool events -c # limit scanning time - log_must set_tunable32 RESILVER_MIN_TIME_MS 50 + log_must set_tunable32 RESILVER_MIN_TIME_MS 20 # initiate a resilver and suspend the scan as soon as possible log_must zpool replace $TESTPOOL1 $VDEV_REPLACE