Advertisement
yaneurabeya

Untitled

Feb 8th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Index: nanobsd/Files/usr/local/sbin/scrub
  2. ===================================================================
  3. --- nanobsd/Files/usr/local/sbin/scrub (revision 10055)
  4. +++ nanobsd/Files/usr/local/sbin/scrub (working copy)
  5. @@ -66,11 +66,15 @@
  6. esac
  7. done
  8.  
  9. - if [ -z "${pool}" ]; then
  10. + shift $(( $OPTIND - 1 ))
  11. +
  12. + if [ $# -ne 1 ]; then
  13. usage "${opts}"
  14. return 2
  15. fi
  16.  
  17. + pool=$1
  18. +
  19. # Piece of code based on 800.scrub-zfs from periodic
  20. _last_scrub=$(zpool history ${pool} | \
  21. egrep "^[0-9\.\:\-]{19} zpool scrub ${pool}\$" | tail -1 |\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement