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 18:18:57 +0000 (11:18 -0700)
commitce1bcb9eb5054c9724ab75be37e5f78f6f8f1b48
tree2a10dd1d85cae3d606b9eb3049b7695ae0c5de5c
parentfda4c5f3ee0a939d4eec5cbb125d0944b4529cac
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