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)
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to