forked from extern/zfs-auto-snapshot
Avoidscrub should reinitialise NOSCRUBFILESYS for cases where take_snapshot() gets called multiple times
This commit is contained in:
parent
61d63aa2e0
commit
05a31dff35
@ -475,8 +475,9 @@ function take_snapshot {
|
|||||||
# also the risk that a running scrub will complete just after this
|
# also the risk that a running scrub will complete just after this
|
||||||
# check. Life's hard.
|
# check. Life's hard.
|
||||||
if [ "$AVOIDSCRUB" == "true" ] ; then
|
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=""
|
NOSCRUBLIST=""
|
||||||
|
NOSCRUBFILESYS=""
|
||||||
|
|
||||||
# Create a list of filesystems scheduled for snapshots
|
# Create a list of filesystems scheduled for snapshots
|
||||||
# that are *not* on pools that are being scrubbed/resilvered
|
# that are *not* on pools that are being scrubbed/resilvered
|
||||||
|
Loading…
Reference in New Issue
Block a user