Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Apr 2016 14:38:03 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r297523 - stable/10/sys/fs/devfs
Message-ID:  <201604031438.u33Ec3OS054706@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604031438.u33Ec3OS054706>