]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/events/events_002_pos.ksh
Sequential scrub and resilvers
[mirror_zfs.git] / tests / zfs-tests / tests / functional / events / events_002_pos.ksh
index b5cb3bb1d222681c0820b58fc1488f122fba2750..495b2bbadee4f5aa5c2bbc1f37aefb26178f0c81 100755 (executable)
@@ -81,6 +81,10 @@ log_must truncate -s 0 $ZED_DEBUG_LOG
 # 4. Generate additional events.
 log_must zpool offline $MPOOL $VDEV1
 log_must zpool online $MPOOL $VDEV1
+while ! is_pool_resilvered $MPOOL; do
+       sleep 1
+done
+
 log_must zpool scrub $MPOOL
 
 # Wait for the scrub to wrap, or is_healthy will be wrong.