git: kernel - Implement QUICKHALT shortcut for unmounting during shutdown
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Mar 18 22:46:05 PDT 2018
commit 51a529db74b2b342d44ffd3feab524929341896f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Mar 18 22:39:10 2018 -0700
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.
Summary of changes:
sys/kern/kern_shutdown.c | 2 +-
sys/kern/vfs_subr.c | 13 +++++++++----
sys/kern/vfs_syscalls.c | 39 +++++++++++++++++++++++++++++++++------
sys/sys/mount.h | 5 +++--
sys/vfs/devfs/devfs_vfsops.c | 1 +
sys/vfs/mfs/mfs_vfsops.c | 2 +-
sys/vfs/nfs/nfs_kerb.c | 2 +-
sys/vfs/procfs/procfs_vfsops.c | 1 +
sys/vfs/puffs/puffs_msgif.c | 4 ++--
sys/vfs/tmpfs/tmpfs_vfsops.c | 1 +
10 files changed, 53 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51a529db74b2b342d44ffd3feab524929341896f
--
DragonFly BSD source repository
More information about the Commits
mailing list