On Mon, Jan 29, 2024 at 3:14 PM Chuck Lever III <chuck.lever@xxxxxxxxxx> wrote: > > > > > On Jan 29, 2024, at 6:44 AM, Roland Mainz <roland.mainz@xxxxxxxxxxx> wrote: > > > > On Mon, Nov 13, 2023 at 2:01 AM Cedric Blancher > > <cedric.blancher@xxxxxxxxx> wrote: > >> On Fri, 10 Nov 2023 at 20:17, Chuck Lever III <chuck.lever@xxxxxxxxxx> wrote: > >>>> On Nov 10, 2023, at 3:30 AM, Martin Wege <martin.l.wege@xxxxxxxxx> wrote: > >>>> On Fri, Nov 10, 2023 at 3:20 AM Chuck Lever III <chuck.lever@xxxxxxxxxx> wrote: > >>>>>> On Nov 9, 2023, at 7:47 PM, Cedric Blancher <cedric.blancher@xxxxxxxxx> 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=4444 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= - 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= in /etc/exports ? > > > > Would this work: > > ---- snip ---- > > `/ref *(no_root_squash,refer=/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 -- __ . . __ (o.\ \/ /.o) roland.mainz@xxxxxxxxxxx \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)