Skip to content

Commit

Permalink
Make it possible to forcibly unmount devfs.
Browse files Browse the repository at this point in the history
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
trasz committed Aug 24, 2015
1 parent 9f7d9cb commit db61d12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/fs/devfs/devfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ devfs_unmount(struct mount *mp, int mntflags)
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)
Expand Down

0 comments on commit db61d12

Please sign in to comment.