Module Name:    src
Committed By:   pooka
Date:           Mon Mar  1 13:03:30 UTC 2010

Modified Files:
        src/sys/rump/librump/rumpvfs: rumpfs.c

Log Message:
"support" unmount of rumpfs


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/rump/librump/rumpvfs/rumpfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpvfs/rumpfs.c
diff -u src/sys/rump/librump/rumpvfs/rumpfs.c:1.36 src/sys/rump/librump/rumpvfs/rumpfs.c:1.37
--- src/sys/rump/librump/rumpvfs/rumpfs.c:1.36	Thu Dec  3 12:54:30 2009
+++ src/sys/rump/librump/rumpvfs/rumpfs.c	Mon Mar  1 13:03:30 2010
@@ -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; /* ;) */
 }
 

Reply via email to