Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1385465rdb; Sun, 7 Jan 2024 18:01:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGziqx995phDE4JHM6A3iXT66xrk2t20E5ppDSWZq5/6yS17uqJqV52OIonp3Xe13VONnv1 X-Received: by 2002:a05:6871:2214:b0:1fb:75b:1325 with SMTP id sc20-20020a056871221400b001fb075b1325mr4059031oab.119.1704679318132; Sun, 07 Jan 2024 18:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704679318; cv=none; d=google.com; s=arc-20160816; b=W3+7XkfLdGsPOQbze5AeKAkqD20SD3t8Vpj1CIlEGUfiyNiGpaOvGfU2VcTCUENX4F PIgGZSEzjFDZ0pOQC4hzfHxCz4ur5uHMPuz7MbKcYz/MpZz/6kmfxHCc8U+rR/4AeZ8n lbJXGcY/FkoMO0S3MdccuZ3baHpdLBcodCknrKIEnwxXBfXbhYBbrNSiOUWhtikWUsm0 +0pCxjyTzRns5UTtLXmNOotHEVEk3SqLnxZGPCDu8Mzcf3l9u8jKZsmHHRqlCtHhdMN2 pQFGGIvGVesYqwLP//4onOKQZnvN8Kan74/mCDcNcA6dom0I93JDffOhnDWPgQfOgahj sJCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:to:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:feedback-id :dkim-signature:dkim-signature; bh=3kpDub9Tp4ZGxg3/gioLIqK0LDKg1bkTfDGFayq4sZU=; fh=lx5fahsfKWEYagCu6mjLMsITumqzCZPEz52CHrlDQFQ=; b=xFFGUD2A/2lTsMCEQcERlJ0CckzWqnRU59rjWUhv/oRkMMFXEs4sylKF+mxkbLXkbP 2VhQmvpLBORnNYVmw3jRT1hDWcdM3I1hjFPFU4CnFI5lHqUX76D7vgUpFFnsedXYkWk/ HXM5dZ4XLrVFyJYnA4J2ZD9F8q7T2ydn1xxQZ4W3kH7XJ0cxlxBS2Y/pTGj6PL9/jyAN HoF0V/Yx36oWMo8xa0UhVuXbttdsGQoZtzrZ6PHYkHshrbjDAf5QEh3dbHzxaIYiJ7W4 /CN2rdpwH4SaapucwUuIx4XJklgY1qBK+fHM7LRpIauaC40325ARwZu1BESXGV5FwSGA wn9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=Hm73PF3s; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vDZkDcha; spf=pass (google.com: domain of linux-nfs+bounces-970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=themaw.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q207-20020a632ad8000000b005cdfb7fd7fesi5191613pgq.369.2024.01.07.18.01.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 18:01:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=Hm73PF3s; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vDZkDcha; spf=pass (google.com: domain of linux-nfs+bounces-970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=themaw.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 07766B20ED6 for ; Mon, 8 Jan 2024 02:01:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A18397481; Mon, 8 Jan 2024 02:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=themaw.net header.i=@themaw.net header.b="Hm73PF3s"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="vDZkDcha" X-Original-To: linux-nfs@vger.kernel.org Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 673E66FB9 for ; Mon, 8 Jan 2024 02:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=themaw.net Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=themaw.net Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5C9BA5C0A6B; Sun, 7 Jan 2024 21:01:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 07 Jan 2024 21:01:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1704679309; x=1704765709; bh=3kpDub9Tp4ZGxg3/gioLIqK0LDKg1bkTfDGFayq4sZU=; b= Hm73PF3sdVCU2epUpGfGPvsMrNUFaBeGlZgl3ctQibjR3qtyld4W7QNsd6ogadVU BUaRPvlHcov6atFKYk6Unf3P3xNYV8wJi3pGhUKB1dAqR7X9dLQ+SxwRsruzkO3Q EXhvOxMpE+9yfWwzDinhG/4gp64yIdIXidRcMRq9r1YS7e/N44VszLR4R3WgKj5A d2idaU9jzItcKeVierP/56vBBtKjcfEO5tplZ9LxDEwhwFkZZ3RWU7npppI56cde 8nXCdARBjd3/bZBqKD+qSQ9bkKjgVn3BP/bMg5THFBCBNxYJFdbkL+wYKS436jQk 0H84a+B0RykD6KZYXkIxNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1704679309; x= 1704765709; bh=3kpDub9Tp4ZGxg3/gioLIqK0LDKg1bkTfDGFayq4sZU=; b=v DZkDchaVi/JArxF+++ycDZoyoaZ8U5N5sqn58D5dYwVTbXq4T0Kk2H81Td/T6WA3 J6cvZHrKE+rttVTI6CNSdnbwTI4mMeEXy6sXZimbbJD2CZgdRroz4VJ613ZgFOx1 ifflk91DbAw/evtH7F4AbqMky7nS/ELosxQ8bmuvdhyHYndjXSojAA8XLQuyyr/Z nmQ8lhykZ939OPhtuazZ+GPI1appVOb/3MyY0a7r5dJrlUtUmEY7G2mKyfBeSoPM lvvfRzz78yD5xlIaTRBaELLnQATIg2yMsGX65L+b7PIgNY4KG/hFeOK9pdaFhj8H L9iTVp265lDBpgkFLrKow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehhedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfvfhfhffujggtgfesthejredttdefjeenucfhrhhomhepkfgrnhcu mfgvnhhtuceorhgrvhgvnhesthhhvghmrgifrdhnvghtqeenucggtffrrghtthgvrhhnpe fhueejuefhvddtledugeeufeduudfgveevieeffeeuudefueeuffeufedugfefieenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrghvvghnse hthhgvmhgrfidrnhgvth X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 7 Jan 2024 21:01:47 -0500 (EST) Message-ID: <68a64e1a-6f39-2b9e-b41c-ae2200e054c0@themaw.net> Date: Mon, 8 Jan 2024 10:01:43 +0800 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 To: Cedric Blancher , Linux NFS Mailing List References: Content-Language: en-US From: Ian Kent Subject: Re: nfs-utils&nfsd&autofs not supporting non-2049 TCP port numbers - Fwd: showmount -e with custom port number? In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/1/24 06:33, Cedric Blancher wrote: > Good evening! > > Generic issue in all of nfs-utils: None of the utils properly support > NFSv4 with non.standard (TCP/2049) port numbers. > > mount supports it for mounting, but does not show it for listing mounts > /proc/mounts does not show the port number either I'll leave this to the nfs folks but, looking at the nfs kernel code, neither of the above appear to be accurate. But then you haven't provided information about what kernel and utility versions your report is based on so I can't check. > showmount -e does not support a port number Now this does look to be a problem, even with the current code, and the mountd port can't be specified at all. > autofs does not support non-2049 port numbers What is it you expect to be able to do with autofs that you can't do? It's interesting that you sound like you assume mountd "must" not be used for NFSv4 and it's not the first time I've heard that. I thought NFSv4 "must" be able to be used without mountd but there was nothing that says mountd "must" not be used to provide port information to clients if they ask, such as on a local (probably isolated) network. So, based on that assumption, the fact that it (the kernel => mount(8), proc mount listings) doesn't print the value of the port option if the default NFS server port is being used seems sensible enough. I'm not aware of any protocol in NFS itself for communicating the list of exports. And if your not on an isolated network would being able to list the exports be a wise idea? So I'm not sure what your expecting to be done ... other than some improvements to showmount(8). > nfsd referrals do not support setting non-2049 port numbers > ... Another interesting comment, I don't actually know about NFS referrals these days. I'd be interested in hearing about them. Ian > > Could you please make a concentrated effort and allow non-2049 port > numbers for NFSv4 mounts, in all of the lifecycle of a NFSv4 mount? > From nfsd, nfsd referrals, client mount/umount, autofs > mount/umount+LDAP spec > > Ced > > ---------- Forwarded message --------- > From: Cedric Blancher > Date: Sun, 7 Jan 2024 at 22:32 > Subject: showmount -e with custom port number? > To: Linux NFS Mailing List > > > Good evening! > > How can I get showmount -e to use a non-2049 TCP port number to show > mounts on a NFSv4 server? > > /sbin/showmount -e localhost@30000 > clnt_create: RPC: Unknown host > > Ced > -- > Cedric Blancher > [https://plus.google.com/u/0/+CedricBlancher/] > Institute Pasteur > >