X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=zfs-scrub;h=5388f542b112006994ecab19a9de36171322f8b0;hb=4f58891850b6285301001bf64cb31659ee87af67;hp=50813fce69192f9dbbed769914f574c098bdba20;hpb=a44c3f17def4addd4be08f31b934afa9c4ce0a8d;p=zfs-ubuntu%2F.git diff --git a/zfs-scrub b/zfs-scrub index 50813fc..5388f54 100755 --- a/zfs-scrub +++ b/zfs-scrub @@ -96,7 +96,7 @@ do # Check for any scrub errors zpool status $i | grep scan: - zpool status $i | grep scan: | grep "with 0 errors" > /dev/null 2>&1 + zpool status $i | grep scan: | grep -e "with 0 errors" -e "in progress" > /dev/null 2>&1 if [ $? != 0 ]; then # The scrub found errors zpool status $i | $mailx -s "zpool scrub on $hostname $i found errors" "$mailto"