From b177323698c3bd6ff4d85c3391d6dbc8c670525e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 3 Mar 2004 06:39:50 +0000 Subject: allow force umount here too --- sys/miscfs/umapfs/umap_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c index b62b4073970..2efab2d48c1 100644 --- a/sys/miscfs/umapfs/umap_vfsops.c +++ b/sys/miscfs/umapfs/umap_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umap_vfsops.c,v 1.24 2003/08/15 20:32:19 tedu Exp $ */ +/* $OpenBSD: umap_vfsops.c,v 1.25 2004/03/03 06:39:49 tedu Exp $ */ /* $NetBSD: umap_vfsops.c,v 1.35 2002/09/21 18:09:31 christos Exp $ */ /* @@ -270,7 +270,7 @@ umapfs_unmount(mp, mntflags, p) if (mntinvalbuf(mp, 1)) return (EBUSY); #endif - if (rootvp->v_usecount > 1) + if (rootvp->v_usecount > 1 && !(flags && FORCECLOSE)) return (EBUSY); if ((error = vflush(mp, rootvp, flags)) != 0) return (error); -- cgit v1.2.3