Date: Mon, 24 Aug 2015 14:04:45 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287109 - head/sys/fs/devfs Message-ID: <201508241404.t7OE4j9N060089@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508241404.t7OE4j9N060089>