Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp454306rdb; Mon, 29 Jan 2024 07:23:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlxN7OJJwQ5F/fIi2fyHiimYfxPzVwDhsKvQ0kL1FMNsOKTIEuwDQ0gUpOjVz21xQrgXkA X-Received: by 2002:a17:903:24b:b0:1d4:e070:73c with SMTP id j11-20020a170903024b00b001d4e070073cmr7162090plh.3.1706541789877; Mon, 29 Jan 2024 07:23:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706541789; cv=pass; d=google.com; s=arc-20160816; b=sKyrHhsrzDuD5cx5g/cALCkTCfDYB7EHjRxVjUPiVf8p6ERIvRbpDXbPmmCNehxFaV vrEfIkBT7afUQ6q7zyrnB4OYL+itkNWAFnQ07kvEnmq6celXrBOK8baxg+Py2TN6/kDy hDFmtnojNzCnf9jtCnEHHzQjDZro5w4r5AE06X0ztXtxfdCO50ZSnMzVNcbepU1h9z0d DfPouM9ohRgVJod3W6XmeXIsoUr27qpilVoadRsfJkdhTLQL37EzXMsqrLyWp2kKYWl5 LeGcQ3fEi+8X9tcxlNhbtAs3aBoRnvjqbIGNpqwldU3mFOz7G1EhtkFSMf3kXxykxqmj Va9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=dcu4w7D5xKzza3auRzOSdYBCP/S0Tof9xVJM8F65eFs=; fh=33nTQ5JbXc+rmMK+2DevfYZbDsnt906Dd52at2/6/ow=; b=sFJFcUuAWSu3azNyMJN+2BOp2PSQwlJpexVZmISYT2btg3QgYlx2/Kzel4FAP+/AI/ +9bYFjwlvprhcql+iV3Gu6ta3POzwtcqjqyYhQzusqyVLbLkbN8hV7TF58i31rGja4+H oGELKOvs6pprA1RRarx8UDsrL6YnmKelRt0NUnVlzXgtjjBOi9Yw0GLzU559I+noKX9U HvEBwDeVnL34AnTYpyTsU317jVXMh0HYdJCxZfbOGtV44k5fcdkIHBTRL0/URTk+xApc CM5vzb4q1AgQiw+Gr3WKD38XJE/Re9np6NwgtocIfgWRierk7bYvkdIznf4iI0vdJJWC tBBQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-1563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1563-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f3-20020a170902ce8300b001d7690fa960si4433097plg.362.2024.01.29.07.23.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 07:23:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1563-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-1563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1563-linux.lists.archive=gmail.com@vger.kernel.org" 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 7643EB2338B for ; Mon, 29 Jan 2024 15:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 186141534F4; Mon, 29 Jan 2024 15:08:07 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F07D152E03 for ; Mon, 29 Jan 2024 15:08:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706540887; cv=none; b=WOQIEcyhHCg6f08UMDMngjPdi1CDEcjurWoQmHuxes/hOz2tVIc11VZX+nGCzdMUhagVVAnSwEZ3v5XeIDX0IO69xk6OF3uITrBxWwjSkfhS1QFu5gETHGL3xaZ/BtQ+an63yP0+vtOl5PJgBtX69f27/Audgj8c7gPFTSsJR/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706540887; c=relaxed/simple; bh=3BJ3URFhTolIM0Zsws+hdGwYqs3N98sE0het+UYSdUo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sj1iCWLIY1kG38Y3cK4fG2HuSr2bSDBHfzPhi+cPYtY0NbGBv6G8KA8tezPOalE+XlPFfTpDjv1EaDqG8ch4rXnCfkXVJpWYFnbXJ4/2nvC7fK+yYL/IVV0m4NvdEfzXEcsYBYkjGBK3YP5xgq0tDjiak/c6pfeNO8xFK9y77XY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nrubsig.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.166.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nrubsig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7bed9c7d33fso106166739f.1 for ; Mon, 29 Jan 2024 07:08:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706540884; x=1707145684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dcu4w7D5xKzza3auRzOSdYBCP/S0Tof9xVJM8F65eFs=; b=GkcJyobUWm50jcaCgmNv9EVAGa4EkaUEmj2fvpomJJCygp6sI+MOOT46qRIDI/Da2t UrIvxFVkLJtyHMBGPBbP7bRK5J9kvdl4Y8+bdOdPKxtDh1yuNuRa+zktvaNGGfnNfQV+ C8RSKBw7HNQR0Av6CEa2l5oHHGIMVGpaBkBotc5cHZ4F25NbOnZMOICknkQZr5k5wjO/ my/LOMnuclxIVOyKV+y2z4vMxodPatm6U4fesTKHLAXA7PxL4Rodt01ENlQXWT/xHUZ8 smiSEf61W5ikvNd/OQDwF7jczfX/B9VlahZ5PgiK5fa9ds/mG5xI3SylHnS9sTS+t+uB rnNQ== X-Gm-Message-State: AOJu0YwEP1iMhojuEKUDMVtcJTkgBAzcJlnpZXjj3oUVetN0q5t6QpWk Xf/8uEUOyBRmBlesADU6sZKiFLLJ0GnGz4gtYVm2l2u1JmEArJb4Wx0L0nDXEMdyMejQTrbj6SS FgKQVFE9u4ROH5/iXILjD/Gj3Zxo+yxsY X-Received: by 2002:a05:6602:235d:b0:7bf:d163:1ea0 with SMTP id r29-20020a056602235d00b007bfd1631ea0mr5205237iot.16.1706540884044; Mon, 29 Jan 2024 07:08:04 -0800 (PST) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4F5C3573-2962-4072-ACB1-1CB8236866D5@oracle.com> <5DA015E1-50C6-4F56-B4E7-62A4BE90DBA4@oracle.com> <610FDE39-3094-40EB-B671-F2CA876CA145@oracle.com> In-Reply-To: <610FDE39-3094-40EB-B671-F2CA876CA145@oracle.com> From: Roland Mainz Date: Mon, 29 Jan 2024 16:07:38 +0100 Message-ID: Subject: Re: refer= syntax in /etc/exports for custom non-2049 TCP ports ? / was: Re: Change "hostname" to "hostport" in text-based mountd downcall Re: BUG in exports(5), no example for refer= Re: Examples for refer= in /etc/exports? To: Linux NFS Mailing List Cc: Martin Wege , Cedric Blancher , Chuck Lever III Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 29, 2024 at 3:14=E2=80=AFPM Chuck Lever III wrote: > > > > > On Jan 29, 2024, at 6:44=E2=80=AFAM, Roland Mainz wrote: > > > > On Mon, Nov 13, 2023 at 2:01=E2=80=AFAM Cedric Blancher > > wrote: > >> On Fri, 10 Nov 2023 at 20:17, Chuck Lever III = wrote: > >>>> On Nov 10, 2023, at 3:30 AM, Martin Wege w= rote: > >>>> On Fri, Nov 10, 2023 at 3:20=E2=80=AFAM Chuck Lever III wrote: > >>>>>> On Nov 9, 2023, at 7:47 PM, Cedric Blancher wrote: > > [snip] > >> Yeah, instead of waiting for NetLink you could implement Roland's > >> suggestion, and change "hostname" to "hostport" in your test-based > >> mount protocol, and technically everywhere else, like /proc/mounts and > >> the /sbin/mount output. > >> So instead of: > >> mount -t nfs -o port=3D4444 10.10.0.10:/backups /var/backups > >> you could use > >> mount -t nfs 10.10.0.10@4444:/backups /var/backups > >> > >> The same applies to refer=3D - just change from "hostname" to > >> "hostport", and the text-based mountd downcall can stay the same (e.g. > >> so "foobarhost" changes to "foobarhost@444" in the mountd download.) > > [snip] > > > > What would be the correct syntax to specify a custom (non-2049) TCP > > port for refer=3D in /etc/exports ? > > > > Would this work: > > ---- snip ---- > > `/ref *(no_root_squash,refer=3D/export/home@134.49.22.111:32049) > > ---- snip ---- > > Hello Roland - > > Although generic NFSv4 referral support has been in NFSD for > many years, NFSD currently does not implement alternate ports > in referrals. I know, but the question is about the syntax in /etc/exports. The idea is to use the same syntax for other NFSv4 server implementations (like nfs4j) ... For context: I have a ticket open for the ms-nfs41-client to get the referral support with custom (non-2049) TCP ports fixed... > It is on our enhancement request list. Thanks... :-) ---- Bye, Roland --=20 __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /=3D=3D\ O\ TEL +49 641 3992797 (;O/ \/ \O;)