From: Alan J. Pippin Date: Sat, 10 Jan 2009 23:43:26 +0000 (-0700) Subject: Moved pool names to variable X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/.%24link.?a=commitdiff_plain;h=36a6b1d45377ec5022e3d05e3282d4fee25352a0;p=zfs-nexenta%2F.git Moved pool names to variable --- 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.