diff options
| author | Vijay Bellur <vijay@gluster.com> | 2010-01-26 21:17:42 +0530 |
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2010-01-26 21:17:42 +0530 |
| commit | 8d73bd9c4335291ce6965c2bc7a58fd46c276ce4 (patch) | |
| tree | 370611a1b6edd2405a53035148f09d3d371f55b9 /init | |
| parent | 30bb80541724588f58eeb80cc5f041fe6e484a33 (diff) | |
| parent | 5728766b4ce46cae41d293e7511c6430c9707dac (diff) | |
Merge branch 'master' of ssh://git.gluster.com/data/git/regression
Diffstat (limited to 'init')
| -rw-r--r-- | init | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -18,6 +18,7 @@ # set -u DESC=0 +BUGID=$(pwd | xargs dirname | xargs basename) function ok () { @@ -57,7 +58,6 @@ echo "Unable to determine version of $GLUSTERFS" exit fi -BUGID=$(pwd | xargs dirname | xargs basename) STARTDIR=$(pwd) LOGDIR=$PWD/logs/$VERSION GLUSTERFSDIR=`dirname $GLUSTERFS` @@ -87,7 +87,10 @@ function revert_exportdir () function comment () { desc=$@ - echo "$desc" + if [ $DESC -ne "0" ] + then + echo "$desc" + fi } function start_glusterfs () @@ -101,9 +104,10 @@ function stop_glusterfs () { cd $STARTDIR # Kill the clients - for i in `ls -d $MOUNTDIR/client*` + sudo pkill -f "$GLUSTERFSDIR/glusterfs --run-id regr-$BUGID-$VERSION-c" 2>/dev/null + for i in `ls $MOUNTDIR/ 2>/dev/null` do - sudo umount $i 2>/dev/null + sudo umount $MOUNTDIR/$i 1>&2 2>/dev/null done # Kill the servers later sudo pkill -f "$GLUSTERFSDIR/glusterfsd --run-id regr-$BUGID-$VERSION-s" |
