Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: nanobsd/Files/usr/local/sbin/scrub
- ===================================================================
- --- nanobsd/Files/usr/local/sbin/scrub (revision 10055)
- +++ nanobsd/Files/usr/local/sbin/scrub (working copy)
- @@ -66,11 +66,15 @@
- esac
- done
- - if [ -z "${pool}" ]; then
- + shift $(( $OPTIND - 1 ))
- +
- + if [ $# -ne 1 ]; then
- usage "${opts}"
- return 2
- fi
- + pool=$1
- +
- # Piece of code based on 800.scrub-zfs from periodic
- _last_scrub=$(zpool history ${pool} | \
- egrep "^[0-9\.\:\-]{19} zpool scrub ${pool}\$" | tail -1 |\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement