Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs "support" unmount of rumpfs
details: https://anonhg.NetBSD.org/src/rev/357358a99438
branches: trunk
changeset: 752561:357358a99438
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Mar 01 13:03:30 2010 +0000
description:
"support" unmount of rumpfs
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 6a58b96c5968 -r 357358a99438 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Mon Mar 01 13:02:46 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Mon Mar 01 13:03:30 2010 +0000
@@ -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 @@
rumpfs_unmount(struct mount *mp, int flags)
{
+ /* if going for it, just lie about it */
+ if (panicstr)
+ return 0;
+
return EOPNOTSUPP; /* ;) */
}
Home |
Main Index |
Thread Index |
Old Index