diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-03 06:39:50 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-03 06:39:50 +0000 |
commit | b177323698c3bd6ff4d85c3391d6dbc8c670525e (patch) | |
tree | 86d7cd02573799dbbb018ba72c1a93db5a3f7e1a /sys | |
parent | 78397b3168f2f1f9e6ac55dda12aaa38928e5ede (diff) |
allow force umount here too
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/umapfs/umap_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |