Check that namecache references to the mount point are no longer present
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 19 Sep 2006 18:17:46 +0000 (18:17 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 19 Sep 2006 18:17:46 +0000 (18:17 +0000)
commitdcf26f79144e1b9056a0cdbaa9b570239c8080b2
treebd98f70653dbdc358a09d2112d9e71b8edc46337
parent1d505369889c9cd3df3408b0d3c67a9f84f61491
Check that namecache references to the mount point are no longer present
before unmounting a filesystem.  Forced unmounts ignore the check but will
print a warning.

This patch is primarily designed to prevent nullfs partitions from being
unmounted while processes are still present within them.  The normal vnode
check does not work for nullfs mounts since nullfs mounts do not hold any
vnodes of their own.

Note that this will cause a warning to be reported for the root filesystem
when rebooting.
sys/kern/vfs_syscalls.c