diff --git a/completions/_xfstests.zsh b/completions/_xfstests.zsh index 4365652..eaf4bd3 100644 --- a/completions/_xfstests.zsh +++ b/completions/_xfstests.zsh @@ -7,6 +7,7 @@ function _xfstests.zsh() { "domains\:domains\:($(virsh list --all --name))"' \ {-k,--scratch}'[the exported scratch directory on the server]: : _files -/' \ {-p,--mountpoint}'[the directory to mount the server]: : _files -/' \ + --nconnect'[number of connections]: :($(seq 1 32))' \ {-r,--rdma}'[test using rdma]: :(rxe siw)' \ {-q,--scratchmnt}'[the directory to mount the scratch export]: : _files -/' \ {-s,--server}'[the server to test against]: : _alternative diff --git a/xfstests.zsh b/xfstests.zsh index 105d788..cbe13d8 100755 --- a/xfstests.zsh +++ b/xfstests.zsh @@ -11,6 +11,7 @@ PROTO=(tcp) zparseopts -D -K \ c:=CLIENT -client:=CLIENT \ k:=SCRATCH -scratch:=SCRATCH \ + -nconnect:=NCONNECT \ p:=MOUNTPOINT -mountpoint:=MOUNTPOINT \ q:=SCRATCHMNT -scratchmnt:=SCRATCHMNT \ r:=RDMA -rdma:=RDMA \ @@ -43,6 +44,9 @@ if [ ${#RDMA} -gt 0 ]; then PROTO+=(rdma) $BIN/rping.zsh ${RDMA[-1]} ${CLIENT[-1]} ${SERVER[-1]} fi +if [ ${#NCONNECT} -gt 0 ]; then + OPTIONS="$OPTIONS,nconnect=${NCONNECT[-1]}" +fi ssh ${CLIENT[-1]} "sudo setup-xfstests.zsh ${SERVER[-1]} ${EXPORT[-1]} ${MOUNTPOINT[-1]} \ ${SCRATCH[-1]} ${SCRATCHMNT[-1]} $USER"