svn commit: r287109 - head/sys/fs/devfs
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Aug 24 14:04:45 UTC 2015
Author: trasz
Date: Mon Aug 24 14:04:44 2015
New Revision: 287109
URL: https://svnweb.freebsd.org/changeset/base/287109
Log:
Make it possible to forcibly unmount devfs.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/fs/devfs/devfs_vfsops.c
Modified: head/sys/fs/devfs/devfs_vfsops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vfsops.c Mon Aug 24 13:46:12 2015 (r287108)
+++ head/sys/fs/devfs/devfs_vfsops.c Mon Aug 24 14:04:44 2015 (r287109)
@@ -182,6 +182,8 @@ devfs_unmount(struct mount *mp, int mntf
fmp = VFSTODEVFS(mp);
KASSERT(fmp->dm_mount != NULL,
("devfs_unmount unmounted devfs_mount"));
+ if (mntflags & MNT_FORCE)
+ flags |= FORCECLOSE;
/* There is 1 extra root vnode reference from devfs_mount(). */
error = vflush(mp, 1, flags, curthread);
if (error)
More information about the svn-src-all
mailing list