diff options
author | Steve Dickson <steved@redhat.com> | 2016-03-02 15:00:32 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-03-02 15:00:32 -0500 |
commit | 43776b6e5c4def2007fe16a18ec39a3783f6a4fc (patch) | |
tree | 073a975a62829192606d12b353991ffbac4fb0a2 | |
parent | 96d969c6cac94c4393b74342931c5c98263be63c (diff) | |
download | cthon04-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-x | runcthon | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |