X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fzfault.sh;h=a5f1f3cb1d1dcdf6878b16a3a37f47d4ad5f8d6c;hb=refs%2Fheads%2Frertzinger%2Ffeature-zpool-get--p;hp=07a411a0e2da67162bd7c0913623484dde81fa01;hpb=e0f3df67e5174cd51284f0c26779046facfc95e0;p=zfs.git diff --git a/scripts/zfault.sh b/scripts/zfault.sh index 07a411a..a5f1f3c 100755 --- a/scripts/zfault.sh +++ b/scripts/zfault.sh @@ -86,6 +86,9 @@ if [ $(id -u) != 0 ]; then die "Must run as root" fi +# Initialize the test suite +init + # Perform pre-cleanup is requested if [ ${CLEANUP} ]; then ${ZFS_SH} -u @@ -916,7 +919,7 @@ test_write_timeout_hard() { # resilvered without error and we should see minimally the zfs.io, # zfs.statechange (VDEV_STATE_HEALTHY (0x7)), and zfs.resilver.* # events posted. - ${ZPOOL} online ${POOL_NAME} ${VDEV_FAULTY}1 || fail 51 + ${ZPOOL} online ${POOL_NAME} ${VDEV_FAULTY} || fail 51 sleep 3 test `zpool_event "zfs.io" "zio_err"` = "0x5" || fail 52 test `zpool_event "zfs.statechange" "vdev_state"` = "0x7" || fail 53