opnsense-src/libexec/rc
Rick Macklem 85ad493677 mountd(8): generate a syslog message when the "V4:" line is missing
Daniel reported that NFSv4 mounts were not working despite having
set "nfsv4_server_enable=YES" in /etc/rc.conf.  Mountd was logging a
message that there was no /etc/exports file.
He noted that creating a /etc/exports file with a "V4:" line in it
was needed make NFSv4 mounts work.
At least one "V4:" line in one of the exports(5) file(s) is needed to
make NFSv4 mounts work. This patch fixes mountd.c so that it logs a
message indicting that there is no "V4:" line in any exports(5)
file when NFSv4 mounts are enabled.
To avoid this message being generated erroneously, /etc/rc.d/mountd
is updated to make sure vfs.nfsd.server_max_nfsvers is properly set
before mountd(8) is started.

PR:	253901

(cherry picked from commit 09673fc0f3)
2021-03-27 12:52:15 -07:00
..
rc.d mountd(8): generate a syslog message when the "V4:" line is missing 2021-03-27 12:52:15 -07:00
Makefile Revert r359294 per manu's request 2020-03-25 08:35:55 +00:00
netstart Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
network.subr IPv6: set ifdisabled in the kernel rather than in rc 2020-11-25 20:58:01 +00:00
pccard_ether Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00
rc Replace literal uses of /usr/local with a variable 2020-11-03 12:29:10 +00:00
rc.bsdextended pkgbase: Really move rc.bsdextended 2019-05-22 07:39:59 +00:00
rc.conf nfs-over-tls: add rc scripts for rpc.tlsclntd and rpc.tlsservd 2021-03-05 13:55:44 -08:00
rc.firewall rc.firewall: Merge two identical conditions into one. 2020-07-23 15:03:28 +00:00
rc.initdiskless Make mdmfs verbose if diskless boot is verbose. 2019-04-26 14:44:50 +00:00
rc.resume rcorder(8): add support for /etc/rc.resume, so it calls "rcorder -k resume" 2018-10-27 17:21:13 +00:00
rc.sendmail pkgbase: Really move rc.sendmail 2019-05-22 07:40:39 +00:00
rc.shutdown rc.shutdown: kill shutdown process after logging message 2019-12-07 00:33:08 +00:00
rc.subr Remove trailing tab. 2019-10-27 18:27:25 +00:00
rc.suspend Move the rc framework out of sbin/init into libexec/rc. 2018-10-17 16:49:11 +00:00