From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Wed, 2 Jun 2021 13:08:13 +0200 Subject: [LTP] [LTP PATCH v2 1/3] nfs_lib.sh: Detect unsupported protocol In-Reply-To: <210e1e4f-23d8-6a8b-18cb-ea7a4e7f89c2@bell-sw.com> References: <20210526172503.18621-1-pvorel@suse.cz> <210e1e4f-23d8-6a8b-18cb-ea7a4e7f89c2@bell-sw.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it > On 26.05.2021 20:25, Petr Vorel wrote: > > Caused by disabled CONFIG_NFSD_V[34] in kernel config. > > Signed-off-by: Petr Vorel > > --- > > new in v2 > > testcases/network/nfs/nfs_stress/nfs_lib.sh | 6 ++++++ > > 1 file changed, 6 insertions(+) > > diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh > > index 3fad8778a..b80ee0e18 100644 > > --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh > > +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh > > @@ -94,9 +94,15 @@ nfs_mount() > > 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 > > + > > + if grep -i "Protocol not supported" mount.log; then > Hi Petr, > It's better to add '-q' flag to grep. Good point, thanks! Kind regards, Petr