zfsnomount.sh 233 B

12345678910
  1. #!/bin/sh
  2. ZROOT="breiz/BCK"
  3. ZFS="/sbin/zfs "
  4. for i in `${ZFS} list -H -o name -r ${ZROOT}` ; do
  5. status=`${ZFS} get -H canmount ${i}| cut -f3`
  6. [ "$status" != "off" ] && echo "$i is ${status}" && ${ZFS} set canmount=off $i
  7. done