kernel - Implement QUICKHALT shortcut for unmounting during shutdown
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 19 Mar 2018 05:39:10 +0000 (22:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 19 Mar 2018 05:39:10 +0000 (22:39 -0700)
commit51a529db74b2b342d44ffd3feab524929341896f
tree74291ba6c58c2f95516f7353afa875ab02d5b8b2
parent731fd4cce0c74e1622ca2d149ee5f4cc8e3adb11
kernel - Implement QUICKHALT shortcut for unmounting during shutdown

* Add the MNTK_QUICKHALT flag which allows the system to just unlink but
  otherwise ignore certain mount types during a halt or reboot.  For now
  we flag tmpfs, devfs, and procfs.

* The main impetus for this is to reduce the messing around we
  do with devfs during a shutdown.  Devfs has its fingers, and its
  vnodes, prettymuch sunk throughout the system (e.g. /dev/null, system
  console, vty's, root mount, and so on and so forth).  There's no
  real need to attempt to unwind all of that mess nicely.
sys/kern/kern_shutdown.c
sys/kern/vfs_subr.c
sys/kern/vfs_syscalls.c
sys/sys/mount.h
sys/vfs/devfs/devfs_vfsops.c
sys/vfs/mfs/mfs_vfsops.c
sys/vfs/nfs/nfs_kerb.c
sys/vfs/procfs/procfs_vfsops.c
sys/vfs/puffs/puffs_msgif.c
sys/vfs/tmpfs/tmpfs_vfsops.c