Moved pool names to variable
[zfs-nexenta/.git] / zfs-scrub-ext-drive
index b86dc5b4434793a3a535177f636ed4c63349a727..f3d5e987d4be0df757b74beac92d2b9255ff9c44 100755 (executable)
@@ -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.