cthon.zsh: Add an --rwsize option
For setting rsize and wsize for the mount to test Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
1c3372e3a5
commit
d770421063
|
@ -15,6 +15,7 @@ function _cthon.zsh() {
|
|||
--srvdmesg'[print server dmesg log after running tests]' \
|
||||
{-p,--mountpoint}'[the directory to mount the server]: : _files -/' \
|
||||
{-r,--rdma}'[test using rdma]: :(rxe siw)' \
|
||||
--rwsize'[test with a specific rsize & wsize]: :($(seq 4096 4096 1048576))' \
|
||||
{-s,--server}'[the server to test against]: : _alternative
|
||||
"hosts\:hosts\: _ssh_hosts"
|
||||
"domains\:domains\:($(virsh list --all --name))"' \
|
||||
|
|
|
@ -13,6 +13,7 @@ zparseopts -F -K \
|
|||
-nconnect:=NCONNECT \
|
||||
-krb5=KRB5 \
|
||||
r:=RDMA -rdma:=RDMA \
|
||||
-rwsize:=RWSIZE \
|
||||
S+=TESTS -special+=TESTS \
|
||||
s:=SERVER -server:=SERVER \
|
||||
x:=EXPORT -export:=EXPORT \
|
||||
|
@ -33,6 +34,10 @@ fi
|
|||
if [ ${#NCONNECT} -gt 0 ]; then
|
||||
ARGS+=("--mntopt nconnect=${NCONNECT[-1]}")
|
||||
fi
|
||||
if [ ${#RWSIZE} -gt 0 ]; then
|
||||
ARGS+=("--mntopt rsize=${RWSIZE[-1]}")
|
||||
ARGS+=("--mntopt wsize=${RWSIZE[-1]}")
|
||||
fi
|
||||
if [ ${#KRB5} -gt 0 ]; then
|
||||
SEC+=(krb5 krb5i krb5p)
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue