summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2011-02-10 15:18:52 -0500
committerSteve Dickson <steved@redhat.com>2011-02-10 15:18:52 -0500
commit7dc25482bdba67b498f58f3db1e2e3d0f31a9a0b (patch)
treed4cd5b4ddfda731bdf0d3a0abcb1b8eac22829c3
parent64284dd630050471d7393b220f74f93fc54ad36d (diff)
downloadcthon04-7dc25482bdba67b498f58f3db1e2e3d0f31a9a0b.tar.gz
cthon04-7dc25482bdba67b498f58f3db1e2e3d0f31a9a0b.tar.xz
cthon04-7dc25482bdba67b498f58f3db1e2e3d0f31a9a0b.zip
Reworked how to unmount the fs when there is a failure
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-xruncthon7
1 files changed, 5 insertions, 2 deletions
diff --git a/runcthon b/runcthon
index 2aa52f6..ee4182e 100755
--- a/runcthon
+++ b/runcthon
@@ -63,8 +63,11 @@ sec=$5
echo "The '$test' test using '$mntargs' args to $server: Failed!!"
mv /tmp/nfsv$vers$proto /tmp/nfsv$vers$proto-`date +"%H:%M:%S"`.error
}
- [ -d $mnt/nfsv$vers$proto/`hostname -s`.test ] &&
- ./domount -u $mnt/nfsv$vers$proto ) &
+ cnt=`grep -c nfsv$vers$proto /proc/mounts`
+ if [ $cnt -gt 0 ]; then
+ sudo umount $mnt/nfsv$vers$proto
+ fi
+ )
}
umountall()
{