Changeset 4d2a365


Ignore:
Timestamp:
04/15/13 12:35:36 (15 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
17235d6
Parents:
c3f709f
Message:

Add ZFS tank fix to pbi-manager as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbi-manager

    r1f0939e r4d2a365  
    74257425getZFSTank() { 
    74267426  local _chkDir="$1" 
     7427  _chkdir=${_chkDir%/} 
    74277428  while : 
    74287429  do 
    7429      line=`mount | grep -w -e $_chkDir -e "(zfs,"` 
    7430      mount | grep -qw -e $_chkDir -e "(zfs," 
    7431      if [ $? -eq 0 ] ; then 
    7432         echo $line | cut -d '/' -f -1 | awk '{print $1}' 
     7430     zpath=`zfs list | awk -v path="${_chkDir}" '$5 == path { print $1 }'` 
     7431     if [ -n "${zpath}" ] ; then 
     7432        echo $zpath | cut -f1 -d '/' 
    74337433        return 0 
    74347434     fi 
Note: See TracChangeset for help on using the changeset viewer.