summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2010-03-01 13:03:30 +0000
committerpooka <pooka@NetBSD.org>2010-03-01 13:03:30 +0000
commit15022b379a3fd345de99eb15fd05bcaad7ae23d0 (patch)
tree2f2912fe16065786c6e254eb7800e121ff03952d /sys
parente4791c262642055738073193da059eb9c7561fd9 (diff)
"support" unmount of rumpfs
Diffstat (limited to 'sys')
-rw-r--r--sys/rump/librump/rumpvfs/rumpfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/rump/librump/rumpvfs/rumpfs.c b/sys/rump/librump/rumpvfs/rumpfs.c
index e9f2d744bfd..9eac29ebe45 100644
--- a/sys/rump/librump/rumpvfs/rumpfs.c
+++ b/sys/rump/librump/rumpvfs/rumpfs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.36 2009/12/03 12:54:30 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.37 2010/03/01 13:03:30 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.36 2009/12/03 12:54:30 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.37 2010/03/01 13:03:30 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -821,6 +821,10 @@ int
rumpfs_unmount(struct mount *mp, int flags)
{
+ /* if going for it, just lie about it */
+ if (panicstr)
+ return 0;
+
return EOPNOTSUPP; /* ;) */
}