]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rpcb_clnt.c: Do not force use of UDP
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 13 Nov 2022 20:16:06 +0000 (12:16 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 16 Dec 2022 21:23:49 +0000 (13:23 -0800)
commita3c07a933d5cb71a6d58cc9f0ecb5385a5e0ea29
treea7ec52de44a07bb3f1268746fb39a5db53462d3a
parente9a573d29c5bd17174f87c5a3282c711c0806868
rpcb_clnt.c: Do not force use of UDP

Without this patch, the code in the rpcbind client forces
the use of UDP.  A comment notes that some rpcbind servers
only support UDP.  This makes NFSv3 mounts to Azure servers
impossible, since they require use of TCP for rpcbind.
Since the comment is very old (imported from NetBSD in 2001)
and I do not believe any UDP only rpcbind servers will
still exist, this patch comments out the code that forces
use of UDP, so that NFSv3 mounts to Azure servers can work.

For an NFSv3 mount, the "udp" mount option will still
make mount_nfs use UDP for rpcbind so that can be used
as a workaround for any old NFSv3 server that only
supports rpcbind over UDP (if any such server still exists).

I asked if doing this change is appropriate on freebsd-fs@
and I only got one reply (off list) that supported doing
the change.

PR: 267301
(cherry picked from commit 032b04626b671ec16deacd479569998b96c96142)
lib/libc/rpc/rpcb_clnt.c