Message ID | 20210525135012.877-3-pvorel@suse.cz |
---|---|
State | Accepted |
Headers | show |
Series | [1/3] tst_net.sh: Move check_portmap_rpcbind() + fixes | expand |
On 25.05.2021 16:50, Petr Vorel wrote: > Suggested-by: NeilBrown <neilb@suse.de> > Signed-off-by: Petr Vorel <pvorel@suse.cz> > --- > testcases/network/nfs/nfs_stress/nfs_lib.sh | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh > index 25fe67bda..fb0f10020 100644 > --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh > +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh > @@ -83,16 +83,17 @@ nfs_mount() > mount_dir="$(tst_ipaddr $host_type):$remote_dir" > fi > > - local mnt_cmd="mount -t nfs $opts $mount_dir $local_dir" > + local mnt_cmd="mount -v -t nfs $opts $mount_dir $local_dir" > > tst_res TINFO "Mounting NFS: $mnt_cmd" > if [ -n "$LTP_NETNS" ] && [ -z "$LTP_NFS_NETNS_USE_LO" ]; then > - tst_rhost_run -c "$mnt_cmd" > + tst_rhost_run -c "$mnt_cmd" > mount.log > else > - $mnt_cmd > /dev/null > + $mnt_cmd > mount.log > fi > > if [ $? -ne 0 ]; then > + cat mount.log > if [ "$type" = "udp" -o "$type" = "udp6" ] && tst_kvcmp -ge 5.6; then > tst_brk TCONF "UDP support disabled with the kernel config NFS_DISABLE_UDP_SUPPORT?" > fi > Thanks Petr! For the patch series: Reviewed-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Hi Alexey, > Thanks Petr! For the patch series: > Reviewed-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com> Thanks a lot! Merged this commit, more info at other commits. Kind regards, Petr
diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh index 25fe67bda..fb0f10020 100644 --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh @@ -83,16 +83,17 @@ nfs_mount() mount_dir="$(tst_ipaddr $host_type):$remote_dir" fi - local mnt_cmd="mount -t nfs $opts $mount_dir $local_dir" + local mnt_cmd="mount -v -t nfs $opts $mount_dir $local_dir" tst_res TINFO "Mounting NFS: $mnt_cmd" if [ -n "$LTP_NETNS" ] && [ -z "$LTP_NFS_NETNS_USE_LO" ]; then - tst_rhost_run -c "$mnt_cmd" + tst_rhost_run -c "$mnt_cmd" > mount.log else - $mnt_cmd > /dev/null + $mnt_cmd > mount.log fi if [ $? -ne 0 ]; then + cat mount.log if [ "$type" = "udp" -o "$type" = "udp6" ] && tst_kvcmp -ge 5.6; then tst_brk TCONF "UDP support disabled with the kernel config NFS_DISABLE_UDP_SUPPORT?" fi
Suggested-by: NeilBrown <neilb@suse.de> Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/network/nfs/nfs_stress/nfs_lib.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)