diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/volume.rc | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index e488aa73b1c..8f2124d8cf0 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -557,11 +557,19 @@ function num_graphs  function get_aux()  {  ##Check if a auxiliary mount is there -df -h 2>&1 | sed 's#/build/install##' | grep -e "[[:space:]]/run/gluster/${V0}$" -e "[[:space:]]/var/run/gluster/${V0}$" - - -if [ $? -eq 0 ] +local rundir=$(gluster --print-statedumpdir) +local pidfile="${rundir}/${V0}.pid" +if [ -f $pidfile ];  then -        echo "0" +        local pid=$(cat ${rundir}/${V0}.pid) +        pidof glusterfs 2>&1 | grep -w $pid > /dev/null + +        if [ $? -eq 0 ] +        then +                echo "0" +        else +                echo "1" +        fi  else          echo "1"  fi  | 
