diff options
author | Steve Dickson <steved@redhat.com> | 2014-07-24 09:17:42 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-07-24 09:17:42 -0400 |
commit | c406716fec017add9ca052a630191d093e1f292d (patch) | |
tree | 333ba4b2beb8220904e51d7c1825d22d2f7601de | |
parent | 92d747cbdb254f2096d7050b19ce61919b308407 (diff) | |
download | cthon04-c406716fec017add9ca052a630191d093e1f292d.tar.gz cthon04-c406716fec017add9ca052a630191d093e1f292d.tar.xz cthon04-c406716fec017add9ca052a630191d093e1f292d.zip |
Fixed private mounts
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-x | runcthon | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -84,7 +84,7 @@ 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 } - cnt=`grep -c nfsv$vers$proto /proc/mounts` + cnt=`grep -c $mnt/nfsv$vers$proto /proc/mounts` if [ $cnt -gt 0 ]; then sudo umount $mnt/nfsv$vers$proto fi @@ -98,15 +98,21 @@ umountall() protos="$protos rdma" fi + if [ $privatemnts -eq 1 ]; then + mnt=/mnt/$server + else + mnt=/mnt + fi + for proto in $protos do for vers in 2 3 4 41 42 do for mnts in `cat /proc/mounts | grep nfs | awk '{print $2}'` do - [ "/mnt/nfsv$vers$proto" = "$mnts" ] && { - echo "sudo umount /mnt/nfsv$vers$proto" - sudo umount /mnt/nfsv$vers$proto + [ "$mnt/nfsv$vers$proto" = "$mnts" ] && { + echo "sudo umount $mnt/nfsv$vers$proto" + sudo umount $mnt/nfsv$vers$proto } done done |