projects
/
zfs-ubuntu
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44c3f1
)
Don't report still in progress zfs scrubs as errors
author
Alan J. Pippin
<alan@pippins.net>
Fri, 2 Oct 2020 18:47:50 +0000
(12:47 -0600)
committer
Alan J. Pippin
<ajp@pippins.net>
Fri, 2 Oct 2020 18:47:50 +0000
(12:47 -0600)
Change-Id: I7476a6f0f2f010b5a24bbcdfd07e19418eb6688b
zfs-scrub
patch
|
blob
|
history
diff --git
a/zfs-scrub
b/zfs-scrub
index 50813fce69192f9dbbed769914f574c098bdba20..5388f542b112006994ecab19a9de36171322f8b0 100755
(executable)
--- 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 error
s" > /dev/null 2>&1
+ zpool status $i | grep scan: | grep
-e "with 0 errors" -e "in progres
s" > /dev/null 2>&1
if [ $? != 0 ]; then
# The scrub found errors
zpool status $i | $mailx -s "zpool scrub on $hostname $i found errors" "$mailto"