]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/cli_root/zpool_scrub/zpool_scrub_004_pos.ksh
OpenZFS 6531 - Provide mechanism to artificially limit disk performance
[mirror_zfs.git] / tests / zfs-tests / tests / functional / cli_root / zpool_scrub / zpool_scrub_004_pos.ksh
index c689d7995a34e19ed81778a63aaf66e55068ff21..ca07769ec282907e71a9ca390906408651859e3a 100755 (executable)
 #      3. Verify scrub failed until the resilver completed
 #
 # NOTES:
-#      A 1 second delay is added to 10% of zio's in order to ensure that
-#      the resilver does not complete before the scrub can be issue.  This
+#      A 10ms delay is added to 10% of zio's in order to ensure that the
+#      resilver does not complete before the scrub can be issued.  This
 #      can occur when testing with small pools or very fast hardware.
 
 verify_runnable "global"
 
 log_assert "Resilver prevent scrub from starting until the resilver completes"
 
-log_must $ZINJECT -d $DISK1 -f10 -D1 $TESTPOOL
 log_must $ZPOOL detach $TESTPOOL $DISK2
+log_must $ZINJECT -d $DISK1 -D10:1 $TESTPOOL
 log_must $ZPOOL attach $TESTPOOL $DISK1 $DISK2
 log_must is_pool_resilvering $TESTPOOL
 log_mustnot $ZPOOL scrub $TESTPOOL