# Check to see if this zfs filesystem has a scrub being performed on it now.
# If it does, we cannot perform any snapshot create or destroy operations.
if [ -z "$SNAP_UNDER_TEST" ]; then
- zpool status $pool | grep scrub: | grep "in progress" > /dev/null 2>&1
+ zpool status $pool | grep scan: | grep "in progress" > /dev/null 2>&1
if [ $? == 0 ]; then
echo "-W- The zfs pool '$pool' is currently being scrubbed. Skipping all snapshot operations."
exit 0