mountd, mount - Change how mount signals mountd, reduce mountd spam
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 25 Jul 2016 18:18:57 +0000 (11:18 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 25 Jul 2016 21:34:42 +0000 (14:34 -0700)
commitb2e83c943ea77370d4a0a2f5b23a6addac76e053
tree016bbf320efce7688ffade55c01dd95a8bd0ade2
parentb036d3323176a1111c6ee73f4ebad084285e2392
mountd, mount - Change how mount signals mountd, reduce mountd spam

* mount now signals mountd with SIGUSR1 instead of SIGHUP.

* mountd now recognizes SIGUSR1 as requesting an incremental update.
  Instead of wiping all exports on all mounts and then re-scanning
  the exports file and re-adding from the exports file, mountd will
  now only wipe the export(s) on mounts it finds in the exports file.

* Greatly reduces unnecessary mountlist scans and commands due to
  mount_null and mount_tmpfs operations, while still preserving our
  ability to export such filesystems.
sbin/mount/mount.c
sbin/mountd/mountd.c