Avoidscrub should reinitialise NOSCRUBFILESYS for cases where take_snapshot() gets called multiple times

This commit is contained in:
Tim Foster 2008-09-01 22:53:10 +01:00
parent 61d63aa2e0
commit 05a31dff35

View File

@ -475,8 +475,9 @@ function take_snapshot {
# also the risk that a running scrub will complete just after this
# check. Life's hard.
if [ "$AVOIDSCRUB" == "true" ] ; then
# a cache of the pools that are known not to be scrubbing
# lists of pools and datasets that are known not to be scrubbing
NOSCRUBLIST=""
NOSCRUBFILESYS=""
# Create a list of filesystems scheduled for snapshots
# that are *not* on pools that are being scrubbed/resilvered