]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsd: silence rpcb_unset noise for NFSv4 only servers
authorRick Macklem <rmacklem@FreeBSD.org>
Thu, 1 Apr 2021 22:09:03 +0000 (15:09 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Thu, 15 Apr 2021 21:50:48 +0000 (14:50 -0700)
commited4f2fc6fdc232da96fd5795795d78c291810e9a
treef9495b08559c1df9d8ad4b8530c3600ba02cbb80
parent913a9cc33ea55538f2c3366016f79f4b2a79e3d0
nfsd: silence rpcb_unset noise for NFSv4 only servers

An NFSv4 only configuration does not register with
rpcbind(). Without this patch a failure to rpcb_unset()
is reported when the daemon is terminated for this case.

This is harmless noise, but this patch avoids calling
rpcb_unset() for the NFSv4 only case, avoiding the noise.

When called with "-d", it still does the rpcb_unset(),
assuming that the configuration might have been
changed to NFSv4 only and unregistering with
rpcbind() might still be needed.

(cherry picked from commit b43fe9eb4b3365156016ae3477747a46fc094bb8)
usr.sbin/nfsd/nfsd.c