mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-18 16:38:50 +02:00
Avoidscrub should reinitialise NOSCRUBFILESYS for cases where take_snapshot() gets called multiple times
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user