Moved pool names to variable
[zfs-nexenta/.git] / zfs-scrub
index aff4a38ee5429f728e9772202d02f1322b7afce6..b82b90028a8b06accaae1e0e7dc5c5c8cb74583a 100755 (executable)
--- 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.