Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp94391lqj; Thu, 11 Apr 2024 10:45:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqLsgIGhBvF1TEVXYyT0qfxHZ5TdDSblREsrm6++Vim7WiV3TMFOhIyXcpOdwnplicV8od2PWBrpl/FbBUBzr5q+ya1B9navaHoox3Jw== X-Google-Smtp-Source: AGHT+IGkv+gjk3vEUn9nC8NggAd2cVt7iGwe/TMgKAam/MZZtRcOCxtP44IvdRGEA+ll7LcnOaCX X-Received: by 2002:a17:902:da86:b0:1e5:62:7abe with SMTP id j6-20020a170902da8600b001e500627abemr235444plx.3.1712857505180; Thu, 11 Apr 2024 10:45:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712857505; cv=pass; d=google.com; s=arc-20160816; b=Y4iWa4GEBnaLQAT6SYg/Q0DjZrBDpgUYtrdsLCYWir0qiAtMQz/kp4Ke79sBZX14/S xF11jwasQdAwqYCG5L0K6Cb6966xeq8W4ggHd+cSjL8kQoZcOxOaunbvuP+z8nhVFMuG qmUq0UqLF8h8b7KDPiPbOO9wTmxKUSao4cdUk4zox0zdKsLhHnpFJSA6nQTQMTFmoqiV 5H72pOL6Sq0dMsZST89CZqMvIMlmvjoxpr9nWSxNY+RbSdb/xBAJfxNDPMEJaoi136e1 /Vl/zg3HB8MMVuIjOaCsCYazr8mVarya4KRyYosFIa0omx+vgkBm6YUFpYHUZ5envNuV 2YBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xTIj/FzZMBNWkbPn2rtDWCjPPG9a/0ySNlLubc6G/pU=; fh=5dz0W9YXCTsGkug8/KjndgNFCQsw0bpoAXfdhonIUTA=; b=GnRUPwApX8olkygvnOxljpVNT+Mlz8fGEtUCuEnqVNvGAkzgkaSDGuCAaCxrEwpyz4 hVYy6a3rbF9ch9cawiL9Ki9fAjocQzoxqnv3/Rm8il2AYBJWW6GfdfgdgEb9Z8vRYNFI TGciJh5AZ5xoxGRXdm13TO/2MjwWPEVAT+V3QdOaQZ1DKuFM1rRCILiDmE5DWYY+9GTK 0pTyRmXKysQQWh3xw8gkW52al6655oEZafRuzkpk4mbfN1WuydqgnIK/YY78ZpdiqmM5 hOBhJ/X4PjLHXfFdVwMrctji7LRfyzDnVRB0Jh5vW06jvBjpaFKvIEpXruJM+r5WCM0U IZNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MsYD6bOc; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f13-20020a170902f38d00b001e549d0b2c8si1552953ple.230.2024.04.11.10.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MsYD6bOc; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D151C283BE9 for ; Thu, 11 Apr 2024 17:45:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F74715FA62; Thu, 11 Apr 2024 16:16:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MsYD6bOc" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1EDD160792 for ; Thu, 11 Apr 2024 16:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712852213; cv=none; b=Cj/+JCY4utJVvuj35bzF5Fy3zb+KI90qEakMLLweO5x22Fgb5FYvRpAnfL0F1VBABVNxTbwbdAw02qT/t3Wy8Oib3cXpR8VpfSSOsOd4wkZ67tPC/TMgJMineNU7QRprtHgCK5oxItL4Wwsh/XFtcCMltYMcJLE81/Uoj/3vxJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712852213; c=relaxed/simple; bh=QB7zYTQh+xxUqKb5jxn+o68FXj6tF8CQ365Cd1AS6FY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=npNqZB/zM5+yy8QBdfc/jVH0byo9uB8wfr1u0QN4DpwbXpT5BRRgSrypehR+KZoQmY7Q37+Xn7BrK+uikJXqqZldyFXuS3HYm+cvr3SYseeMkh5MO/584MFIWYcZFbeW3Cj4Rvem50KK0sy8srHALgEV7jGbLrzrpqiAj9B5Rh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=MsYD6bOc; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712852209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xTIj/FzZMBNWkbPn2rtDWCjPPG9a/0ySNlLubc6G/pU=; b=MsYD6bOcjV8kvggh8Sra92oqMEoZhs0r0uPbhqlTGLStTyNlWo8zz+mhBF45Jjl2BJ+sh0 hnKjrISGRNF05i8Bgbo3dYW4BV3y0lOR9qTxKlRjDj5lD5FnNnScb40HHerbro/UuUfPiD gwuKZobfGZDh2B0N9rQxRmEE/vFJ6VY= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-182-oibKdQSGOnGpOUI-bEbW7g-1; Thu, 11 Apr 2024 12:16:48 -0400 X-MC-Unique: oibKdQSGOnGpOUI-bEbW7g-1 Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-6eb5585d6daso17687a34.0 for ; Thu, 11 Apr 2024 09:16:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712852207; x=1713457007; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xTIj/FzZMBNWkbPn2rtDWCjPPG9a/0ySNlLubc6G/pU=; b=O2yFu21E2xGUiJkepJQVk5+0K7nbF8ByhqRmyetAK1h+1LYNYNtfUxL01HbT6GwiTh pd3qWaBbNRUT8C3G29rfaM7NJSVx1l0txKCMbVLXAObzXBq5XVQYnBWsPQopSg/wSdv0 XDmGXxCCrKFjzbsobNp8X/cRbU3Anjg3FxLHRvWun0xzPFBIg1umKI0HYlbmf5qJggiy Wi6D6KNEp+XwHOVHuMSWaYz2zV/rr5gfo1IEBWQr2ocEMGoYCF3YtF14eYUTBzTiL+BA WkF8XAZsBQUfR6C6RyqmdBMb6Zatv5BK6gb/uQOjPJy49QyQ1Ixs3OQ3PF2kjmYMHtp9 Hc3w== X-Gm-Message-State: AOJu0YyPntgge2ivMqsCQG8sHKy/qmE5y/BBjb+5DjmE4Yre1f/3BsWH oldS0KGEFQkml5lH9Bhey8hco2lQ+o07H5YEKB9vPyD7vvMBqJF3MtwfyAdHGeGiYXW8KQF/pzx P9wlyFNh/t0JIT0rA0TeZHPLkHCQqixnwHlcEn+TbXJywELYwdTZrZ9/sDdrW2F4ETg== X-Received: by 2002:a9d:6f10:0:b0:6ea:bc18:a04c with SMTP id n16-20020a9d6f10000000b006eabc18a04cmr70610otq.3.1712852206802; Thu, 11 Apr 2024 09:16:46 -0700 (PDT) X-Received: by 2002:a9d:6f10:0:b0:6ea:bc18:a04c with SMTP id n16-20020a9d6f10000000b006eabc18a04cmr70589otq.3.1712852206481; Thu, 11 Apr 2024 09:16:46 -0700 (PDT) Received: from [10.19.60.48] (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id f17-20020ae9ea11000000b0078ec846066fsm245199qkg.7.2024.04.11.09.16.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 09:16:45 -0700 (PDT) Message-ID: <662267b6-f27c-41e7-9df1-7915f4448127@redhat.com> Date: Thu, 11 Apr 2024 12:16:45 -0400 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [nfs-utils PATCH] mount: warning "namlen=" option for a NFSv4 mount To: Chen Hanxiao Cc: linux-nfs@vger.kernel.org References: <20240403070228.308-1-chenhx.fnst@fujitsu.com> Content-Language: en-US From: Steve Dickson In-Reply-To: <20240403070228.308-1-chenhx.fnst@fujitsu.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/3/24 3:02 AM, Chen Hanxiao wrote: > namlen is not a valid option for NFSv4. > Currently, we could pass a namlen=xxx in a NFSv4 mount, > the mount command succeed and namlen is ignored silently > > # mount -o vers=4,namlen=100 192.168.122.19:/nfsroot /mnt/ -vvv > mount.nfs: timeout set for Fri Mar 22 14:22:18 2024 > mount.nfs: trying text-based options 'namlen=100,vers=4.2, > addr=192.168.122.19,clientaddr=192.168.122.15' > > This patch will remove "namlen=" option in a NFSv4 mount, > and give a warning message in verbose mode. > > Signed-off-by: Chen Hanxiao Committed... (tag: nfs-utils-2-7-1-rc6 steved. > --- > utils/mount/stropts.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c > index dbdd11e7..a92c4200 100644 > --- a/utils/mount/stropts.c > +++ b/utils/mount/stropts.c > @@ -780,6 +780,14 @@ static int nfs_do_mount_v4(struct nfsmount_info *mi, > goto out_fail; > } > > + if (po_contains(options, "namlen")) { > + po_remove_all(options, "namlen"); > + if (verbose) { > + printf(_("%s: Ignore unsupported nfs4 mount option 'namlen' in '%s'\n"), > + progname, *mi->extra_opts); > + } > + } > + > if (mi->version.v_mode != V_SPECIFIC) { > char *fmt; > switch (mi->version.minor) {