summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2016-03-02 15:00:32 -0500
committerSteve Dickson <steved@redhat.com>2016-03-02 15:00:32 -0500
commit43776b6e5c4def2007fe16a18ec39a3783f6a4fc (patch)
tree073a975a62829192606d12b353991ffbac4fb0a2
parent96d969c6cac94c4393b74342931c5c98263be63c (diff)
downloadcthon04-43776b6e5c4def2007fe16a18ec39a3783f6a4fc.tar.gz
cthon04-43776b6e5c4def2007fe16a18ec39a3783f6a4fc.tar.xz
cthon04-43776b6e5c4def2007fe16a18ec39a3783f6a4fc.zip
Do not create udp directories when not needed.
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-xruncthon4
1 files changed, 3 insertions, 1 deletions
diff --git a/runcthon b/runcthon
index e8cd3e3..1952816 100755
--- a/runcthon
+++ b/runcthon
@@ -150,14 +150,16 @@ umountall()
}
mkdirs()
{
- protos="udp tcp"
+ protos="tcp"
[ "$rdma" -eq 1 ] && protos="$protos rdma"
+ [ "$noudp" -eq 0 ] && protos="$protos udp"
for proto in $protos
do
for vers in 3 4 41 42
do
[ "$proto" == "udp" -a "$vers" == "4" ] && continue
[ "$proto" == "udp" -a "$vers" == "41" ] && continue
+ [ "$proto" == "udp" -a "$vers" == "42" ] && continue
mkdir ./nfsv$vers$proto
done
done