svn commit: r297523 - stable/10/sys/fs/devfs
Alexander Motin
mav at FreeBSD.org
Sun Apr 3 14:38:04 UTC 2016
Author: mav
Date: Sun Apr 3 14:38:02 2016
New Revision: 297523
URL: https://svnweb.freebsd.org/changeset/base/297523
Log:
MFC r287109 (by trasz): Make it possible to forcibly unmount devfs.
Modified:
stable/10/sys/fs/devfs/devfs_vfsops.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/fs/devfs/devfs_vfsops.c
==============================================================================
--- stable/10/sys/fs/devfs/devfs_vfsops.c Sun Apr 3 11:18:20 2016 (r297522)
+++ stable/10/sys/fs/devfs/devfs_vfsops.c Sun Apr 3 14:38:02 2016 (r297523)
@@ -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