Permalink
Browse files

fix for scrub check when snapshotting with tank/something - benedict

  • Loading branch information...
1 parent 623a875 commit 584e602a8c0a50826ae2094ef47a5f07881c0c0c rm committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 etc/periodic/zfs-snapshot
@@ -5,7 +5,7 @@ scrub_in_progress()
{
pool=$1
- if zpool status $pool | grep "scrub in progress" > /dev/null; then
+ if zpool status `echo $pool | awk -F "/" '{print $1}'` | grep "scrub in progress" > /dev/null; then
return 0
else
return 1

0 comments on commit 584e602

Please sign in to comment.