1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00
freebsd/usr.sbin/mountd
Rick Macklem 7674d489fc Fix mountd so that it will not lose SIGHUPs that indicate "reload exports".
Without this patch, if a SIGHUP is handled while the process is executing
get_exportlist(), that SIGHUP is essentially ignored because the got_sighup
variable is reset to 0 after get_exportlist().
This results in the exports file(s) not being reloaded until another SIGHUP
signal is sent to mountd.
This patch fixes this by resetting got_sighup to zero before the
get_exportlist() call while SIGHUP is blocked.
It also defines a delay time of 250msec before doing another exports reload
if there are RPC request(s) to process. This prevents repeated exports reloads
from delaying handling of RPC requests significantly.

PR:		246597
Reported by:	patrykkotlowski@gmail.com
Tested by:	patrykkotlowski@gmail.com
Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D25127
2020-06-06 00:40:02 +00:00
..
exports.5 Bump .Dd for today's edit. 2019-02-11 16:31:15 +00:00
Makefile usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mountd.8 Add a reference to the NFSv3 RFC. 2019-08-08 21:08:13 +00:00
mountd.c Fix mountd so that it will not lose SIGHUPs that indicate "reload exports". 2020-06-06 00:40:02 +00:00
netgroup.5 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pathnames.h Modify mountd so that it incrementally updates the kernel exports upon a reload. 2019-06-03 22:58:51 +00:00