Skip to content

Commit 75dda92

Browse files
authored
ZTS: resilver_restart_001.ksh restore defaults
Update resilver_restart_001.ksh to restore the default resilver_defer_percent when the test completes. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Reviewed-by: Pavel Snajdr <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #16618
1 parent 65a94ff commit 75dda92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ function cleanup
4848
log_must set_tunable32 RESILVER_MIN_TIME_MS $ORIG_RESILVER_MIN_TIME
4949
log_must set_tunable32 SCAN_SUSPEND_PROGRESS \
5050
$ORIG_SCAN_SUSPEND_PROGRESS
51+
log_must set_tunable32 RESILVER_DEFER_PERCENT \
52+
$ORIG_RESILVER_DEFER_PERCENT
5153
log_must set_tunable32 ZEVENT_LEN_MAX $ORIG_ZFS_ZEVENT_LEN_MAX
5254
log_must zinject -c all
5355
destroy_pool $TESTPOOL1
@@ -90,6 +92,7 @@ log_assert "Check for unnecessary resilver restarts"
9092

9193
ORIG_RESILVER_MIN_TIME=$(get_tunable RESILVER_MIN_TIME_MS)
9294
ORIG_SCAN_SUSPEND_PROGRESS=$(get_tunable SCAN_SUSPEND_PROGRESS)
95+
ORIG_RESILVER_DEFER_PERCENT=$(get_tunable RESILVER_DEFER_PERCENT)
9396
ORIG_ZFS_ZEVENT_LEN_MAX=$(get_tunable ZEVENT_LEN_MAX)
9497

9598
set -A RESTARTS -- '1' '2' '2' '2'

0 commit comments

Comments
 (0)