Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5221460ybb; Tue, 24 Mar 2020 13:10:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt+nRoJ13m8zjDEIRyRYViCfB4gozBwNL4djAAA+iwTDmhkjptj//gmX8MmJzs4m7iTOKuw X-Received: by 2002:a9d:694a:: with SMTP id p10mr24610699oto.151.1585080618776; Tue, 24 Mar 2020 13:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585080618; cv=none; d=google.com; s=arc-20160816; b=rsnn9JSVvxPsZnZbS4h4eF6iyZ/2MtzLstBarz6AaAlb+KAbOOc9mafyewxkHuTCux ERkhBYhwcX8eBjCJ3foT002uufkFeZQrvglj2xBnH43Y6tMkwtUu6EGVM2TMcXtn3irw c1SExAzbCiNnIhVWOoFLDPrV8QgzMt6I773snq8qr5/zzH1eRabXF+mALzAy3XkK6wt2 UDvv+wnj0xfFzpsa6BNkx70R5U+1hV9qHA9ghTy1mz56XuEoSRYBTR2SadAZ6Df6F2bZ kY6jPdmpvCYtaU6LXES6T2r8nItD8pYB2aRcFNwQcm4Hou3I2RAdGY2n38crgNRyQjt5 Ybmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7FghYcMciOSHl7SACdMZCEzL4HjlWkeFZatsv7hOKPw=; b=fYNk6U4L+Dfe4IzjaeeRckIg6pzo6HVfC6chuoCMXOCnf9Z94vD3UZAMID/3B/KgDA jQ26OTJbTj2BTNoeKPPqVatAL55XSEhcnVNLhHn7EI6ln/E1XUphlupgqd9b96TVOhut H3YY8I9okCkPQqYb5OEbj6fEXMTDxR6DVYUY+mUrLRW3hTZ/olMZzwoA0z3E22Lg0ohB VySDoTsKuv1OZOqZcFGBnlUiVTZgA8c3+GD5teY7J9drV6Z2j/OU7DxyuQj7hCRdFaca o8jZUAQDeTVC3CHrBjWy8snsULcn3XLNuOtkZjFqj+NuSAZ/WCKvufkFmmo+8P0xzY6+ 7Sqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t71si9348039oif.84.2020.03.24.13.09.53; Tue, 24 Mar 2020 13:10:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727662AbgCXUJE (ORCPT + 99 others); Tue, 24 Mar 2020 16:09:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:50336 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgCXUJD (ORCPT ); Tue, 24 Mar 2020 16:09:03 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9BD49ACCA; Tue, 24 Mar 2020 20:09:02 +0000 (UTC) From: Petr Vorel To: linux-nfs@vger.kernel.org Cc: Petr Vorel , Olga Kornievskaia , Anna Schumaker , Trond Myklebust , "J . Bruce Fields" , Chuck Lever Subject: [PATCH 1/1] NFS: Don't specify NFS version in "UDP not supported" error Date: Tue, 24 Mar 2020 21:08:49 +0100 Message-Id: <20200324200849.5331-1-pvorel@suse.cz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org UDP was originally disabled in 6da1a034362f for NFSv4. Later in b24ee6c64ca7 UDP is by default disabled by NFS_DISABLE_UDP_SUPPORT=y for all NFS versions. Therefore remove v4 from error message. Fixes: b24ee6c64ca7 ("NFS: allow deprecation of NFS UDP protocol") Signed-off-by: Petr Vorel --- Hi, although on NFS_DISABLE_UDP_SUPPORT=n it might be confusing that version is not specified, IMHO it's less confusing than "NFSv4" for NFSv3. But if you like I can distinguish these two cases. Kind regards, Petr fs/nfs/fs_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index e113fcb4bb4c..566dd59570e6 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -1135,7 +1135,7 @@ static int nfs4_parse_monolithic(struct fs_context *fc, return nfs_invalf(fc, "NFS4: mount program didn't pass remote address"); out_invalid_transport_udp: - return nfs_invalf(fc, "NFSv4: Unsupported transport protocol udp"); + return nfs_invalf(fc, "NFS: Unsupported transport protocol udp"); } #endif @@ -1257,7 +1257,7 @@ static int nfs_fs_context_validate(struct fs_context *fc) nfs_errorf(fc, "NFS: NFSv4 is not compiled into kernel"); return -EPROTONOSUPPORT; out_invalid_transport_udp: - return nfs_invalf(fc, "NFSv4: Unsupported transport protocol udp"); + return nfs_invalf(fc, "NFS: Unsupported transport protocol udp"); out_no_address: return nfs_invalf(fc, "NFS: mount program didn't pass remote address"); out_mountproto_mismatch: -- 2.25.1