Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5518166pxj; Wed, 26 May 2021 12:26:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD5JVAIGeb61W+6/koGzkpBzozCP3TkaERTQURJEs/af/ty7ibh+0Ap/3wfAOhw3KbRrQ6 X-Received: by 2002:a50:eb08:: with SMTP id y8mr39567575edp.89.1622057190877; Wed, 26 May 2021 12:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622057190; cv=none; d=google.com; s=arc-20160816; b=lb7U76lyqjJDGhEgqo+WV4fr4Zm8dLwe8ikQL6EjBV5veFrbogf0xhwRQ1nQEtII4j tl9w4TsqYKP3kcWeQYal7JE80Hy3yruR0QsRGdYhHCI2Vt4GL1Vv++yu3ObXUMEi0+WG kKe6xonZ9k5v/srtXoYt0xrdx9POWOEQeunpHBKXk6s/r9cmVoyG/Ct0cZN9ZVJ9L67f ceb6B90AA6/GAXxTqromKhSsKgh7j8zu/64sfgNgkLZKFToeQtzNICkFNDtlit17111n Swi+i9bVUIkqwa83uM40Z4VdRd3wJ+e02RN9sR5LGPu/z9hx3285lpt5FEGeqK7/BMTm m9qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=TH5m+itfc3wszX6zdthSUNY7BimLXL7cWZygJJRHBR0=; b=hVqYHjNj/7PKOeZ13VRHu89KTDYym8nwwOAX9yuzD7WsT3oY8tajR609JpGfI4VerZ 772RoRu1fZ9ku2MuA0SglMNX63WeMIKOx+tpySt25duosCwnP6BQdPNtV5weyHb4sQ5U 4CGVadj6aINp54PbBuwOjHs2nJ4r0bGw+O5FkuNjyaNvd54aCW/9rxVi8VeAq0YnyRsw +ghWMDfbllkaCHRLiJ79CovQUcY4wXr9qGoErmXz/kTzuwvuLyjPLvggLu56b9IKeZaS pZ2ZzzBJ2CpG49O0jE7XDotRjKZnxgUV7kxfACKyq4vGPqd8Fze8C8JsMo1AUYc1OQ9g +ZPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=RN3tFcMu; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si200918edw.187.2021.05.26.12.24.37; Wed, 26 May 2021 12:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=RN3tFcMu; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234417AbhEZRfd (ORCPT + 99 others); Wed, 26 May 2021 13:35:33 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:51364 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234386AbhEZRfc (ORCPT ); Wed, 26 May 2021 13:35:32 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 90C581FD2A; Wed, 26 May 2021 17:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1622049910; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TH5m+itfc3wszX6zdthSUNY7BimLXL7cWZygJJRHBR0=; b=RN3tFcMuIcqKlN9AOxzBvmYZAfpSKsenkVf8lyC47W9dl0QU0sO8HEns97Qbsc4HkkbU7o 0hjKDqaqeZkfqRGX2YQ9ucKRFTfpt1okviTaKdldcYoi5uwWQ5/5NUQr6/LiNmoowFKBG3 8cWIRDuzIjctoEOYk2znmISFLZjRPVs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1622049910; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TH5m+itfc3wszX6zdthSUNY7BimLXL7cWZygJJRHBR0=; b=IcV7JQauHTEfXp01mWLATdPGZuUGnn2vtuAuihYj+5VbJOvV/agEiyo4demwFvD2vUo70c 2dIKS22GA8SRe8CA== Received: from director2.suse.de (director2.suse-dmz.suse.de [192.168.254.72]) by imap.suse.de (Postfix) with ESMTPSA id 6F33611A98; Wed, 26 May 2021 17:25:10 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Alexey Kodanev , linux-nfs@vger.kernel.org Subject: [LTP PATCH v2 1/3] nfs_lib.sh: Detect unsupported protocol Date: Wed, 26 May 2021 19:25:01 +0200 Message-Id: <20210526172503.18621-1-pvorel@suse.cz> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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 + tst_brk TCONF "Protocol not supported" + fi + tst_brk TBROK "mount command failed" fi } -- 2.31.1