Révision 8 bin/del-filesystem

del-filesystem (revision 8)
16 16

  
17 17
if [ "$MOUNTED" == "no" ]
18 18
then
19
   zfs destroy -r $FS_NAME
19
   is_pool=$(zpool list $FS_NAME)
20
   if [ $? == 1 ]
21
   then
22
      zfs destroy -r $FS_NAME
23
   else
24
      echo "$FS_NAME is a zpool, cannot remove recursively this filesystem" 1>&2
25
      exit 1;
26
   fi 
20 27
   
21 28
else
22 29
   echo "ZFS FileSystem $FS_NAME mounted" 1>&2

Formats disponibles : Unified diff