diff options
Diffstat (limited to 'tests/volume.rc')
| -rw-r--r-- | tests/volume.rc | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index 9debe2b997f..1b9f8b2c85b 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -39,6 +39,16 @@ function get_mount_process_pid {          ps aux | grep glusterfs | grep -E "volfile-id[ =]/?$vol " | awk '{print $2}' | head -1  } +function get_nfs_pid () +{ +        ps aux | grep "volfile-id\ gluster\/nfs" | awk '{print $2}' | head -1 +} + +function read_nfs_pidfile () +{ +        echo `cat /var/lib/glusterd/nfs/run/nfs.pid` +} +  function cleanup_statedump {         pid=$1         rm -f $statedumpdir/*$pid.dump.*  | 
