]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Modify the nfsuserd daemon so that it uses an AF_LOCAL socket for upcalls.
authorrmacklem <rmacklem@FreeBSD.org>
Thu, 6 Jul 2017 22:04:37 +0000 (22:04 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Thu, 6 Jul 2017 22:04:37 +0000 (22:04 +0000)
commitdca15b18f0a4af4949f026753e15cfdfbec12a5e
tree956d01c483b88a3d8c1a3053d421091587da4cd2
parent0b10b7d8fdf1d1565c00043d5528c7b622443fbb
Modify the nfsuserd daemon so that it uses an AF_LOCAL socket for upcalls.

This patch modifies the nfsuserd daemon so that it uses an AF_LOCAL socket
for upcalls by default. This should fix the problem with using a UDP
socket upcall to 127.0.0.1 when jails are used.
The AF_LOCAL socket case only supports a single server daemon, since hangs
were observed by the original problem reporter when multiple daemons
were used.
The patch adds a command line option called "-use-udpsock" which makes
the daemon revert to its prepatched behaviour.

Suggested by: dfr
PR: 205193
Relnotes: yes
usr.sbin/nfsuserd/nfsuserd.c