diff options
author | Steve Dickson <steved@redhat.com> | 2011-02-10 15:18:52 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-02-10 15:18:52 -0500 |
commit | 7dc25482bdba67b498f58f3db1e2e3d0f31a9a0b (patch) | |
tree | d4cd5b4ddfda731bdf0d3a0abcb1b8eac22829c3 | |
parent | 64284dd630050471d7393b220f74f93fc54ad36d (diff) | |
download | cthon04-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-x | runcthon | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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() { |