After forced unmount of a file system that has other mount points
authorbluhm <bluhm@openbsd.org>
Sat, 15 Apr 2017 13:56:43 +0000 (13:56 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 15 Apr 2017 13:56:43 +0000 (13:56 +0000)
commita23c2a0ffe18260b2e2fa6cc26e023d04a7764ec
treea1df708d3d70e5bca02b6e3a716a5030ca25a5ff
parent78be3774fe644a631f73b69741209a34d43285ea
After forced unmount of a file system that has other mount points
in it, dangling mounts could remain.  When unmounting check the
hierarcy and unmount recursively.  Also prevent that a new mount
appears during the scan.
Joint work with natano@; testing and OK krw@
sys/kern/vfs_syscalls.c
sys/sys/mount.h