From 36a6b1d45377ec5022e3d05e3282d4fee25352a0 Mon Sep 17 00:00:00 2001 From: "Alan J. Pippin" Date: Sat, 10 Jan 2009 16:43:26 -0700 Subject: [PATCH] Moved pool names to variable --- zfs-scrub | 3 ++- zfs-scrub-ext-drive | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zfs-scrub b/zfs-scrub index aff4a38..b82b900 100755 --- a/zfs-scrub +++ b/zfs-scrub @@ -8,10 +8,11 @@ PATH=/usr/sbin:/sbin:$PATH +pools="tank storage" maxsleeptime=360 logfile=/var/log/zfs/zfs-scrub.log -for i in tank storage +for i in $pools do # Check to see if this zfs filesystem has a scrub being performed on it now. # If it does, we cannot perform more than one scrub operation at a time. diff --git a/zfs-scrub-ext-drive b/zfs-scrub-ext-drive index b86dc5b..f3d5e98 100755 --- a/zfs-scrub-ext-drive +++ b/zfs-scrub-ext-drive @@ -8,11 +8,12 @@ PATH=/usr/sbin:/sbin:/etc/bin:$PATH +pools="backups" maxsleeptime=360 mailto=root logfile=/var/log/zfs/zfs-scrub.log -for i in backups +for i in $pools do # Check to see if any zfs filesystem has a scrub being performed on it now. # If it does, we cannot perform more than one scrub operation at a time. -- 2.34.1