From 8c4600a2edc5be15861da26b9687d889719777aa Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 12 Jan 2011 17:14:34 +0000 Subject: [PATCH] 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. --- sys/rump/librump/rumpvfs/rumpfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/rump/librump/rumpvfs/rumpfs.c b/sys/rump/librump/rumpvfs/rumpfs.c index eac194aac27f..2817c43e5496 100644 --- a/sys/rump/librump/rumpvfs/rumpfs.c +++ b/sys/rump/librump/rumpvfs/rumpfs.c @@ -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. @@ -26,7 +26,7 @@ */ #include -__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 #include @@ -1648,6 +1648,7 @@ rumpfs_mountroot() if (error) panic("set_statvfs_info failed for rootfs: %d", error); + mp->mnt_flag &= ~MNT_RDONLY; vfs_unbusy(mp, false, NULL); return 0;