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 Mark rootfs r/w. Thanks to the inc...



details:   https://anonhg.NetBSD.org/src/rev/a94b85eb2038
branches:  trunk
changeset: 760744:a94b85eb2038
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 12 17:14:34 2011 +0000

description:
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.

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 100ffc1a32f8 -r a94b85eb2038 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Wed Jan 12 16:18:57 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Wed Jan 12 17:14:34 2011 +0000
@@ -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 <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/atomic.h>
@@ -1648,6 +1648,7 @@
        if (error)
                panic("set_statvfs_info failed for rootfs: %d", error);
 
+       mp->mnt_flag &= ~MNT_RDONLY;
        vfs_unbusy(mp, false, NULL);
 
        return 0;



Home | Main Index | Thread Index | Old Index