"support" unmount of rumpfs

This commit is contained in:
pooka 2010-03-01 13:03:30 +00:00
parent e4791c2626
commit 15022b379a
1 changed files with 6 additions and 2 deletions

View File

@ -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; /* ;) */
}