Mark rootfs r/w. Thanks to the incredible machine known as vfs,

the only one who noticed the inconsistency of writing to a r/o fs
was unionfs.
This commit is contained in:
pooka 2011-01-12 17:14:34 +00:00
parent 13a6c9a843
commit 8c4600a2ed

View File

@ -1,4 +1,4 @@
/* $NetBSD: rumpfs.c,v 1.82 2011/01/11 14:05:32 kefren Exp $ */ /* $NetBSD: rumpfs.c,v 1.83 2011/01/12 17:14:34 pooka Exp $ */
/* /*
* Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved. * Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved.
@ -26,7 +26,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.82 2011/01/11 14:05:32 kefren Exp $"); __KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.83 2011/01/12 17:14:34 pooka Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/atomic.h> #include <sys/atomic.h>
@ -1648,6 +1648,7 @@ rumpfs_mountroot()
if (error) if (error)
panic("set_statvfs_info failed for rootfs: %d", error); panic("set_statvfs_info failed for rootfs: %d", error);
mp->mnt_flag &= ~MNT_RDONLY;
vfs_unbusy(mp, false, NULL); vfs_unbusy(mp, false, NULL);
return 0; return 0;