From 05a31dff35068f6bad16c64a85d89c6f2c77403c Mon Sep 17 00:00:00 2001 From: Tim Foster Date: Mon, 1 Sep 2008 22:53:10 +0100 Subject: [PATCH] Avoidscrub should reinitialise NOSCRUBFILESYS for cases where take_snapshot() gets called multiple times --- src/lib/svc/method/zfs-auto-snapshot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/svc/method/zfs-auto-snapshot b/src/lib/svc/method/zfs-auto-snapshot index c5b6992..21421d7 100755 --- a/src/lib/svc/method/zfs-auto-snapshot +++ b/src/lib/svc/method/zfs-auto-snapshot @@ -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