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 Make sure rumpfs is attached on all...



details:   https://anonhg.NetBSD.org/src/rev/366d2e532c5d
branches:  trunk
changeset: 749336:366d2e532c5d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 26 21:04:42 2009 +0000

description:
Make sure rumpfs is attached on all host platforms.

diffstat:

 sys/rump/librump/rumpvfs/rump_vfs.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r a3581c9e9a8b -r 366d2e532c5d sys/rump/librump/rumpvfs/rump_vfs.c
--- a/sys/rump/librump/rumpvfs/rump_vfs.c       Thu Nov 26 20:58:51 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs.c       Thu Nov 26 21:04:42 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_vfs.c,v 1.35 2009/11/26 20:58:51 pooka Exp $      */
+/*     $NetBSD: rump_vfs.c,v 1.36 2009/11/26 21:04:42 pooka Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.35 2009/11/26 20:58:51 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.36 2009/11/26 21:04:42 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -107,10 +107,20 @@
 void
 rump_vfs_init2()
 {
+       extern struct vfsops rumpfs_vfsops;
        int rv;
 
        rootfstype = ROOT_FSTYPE_ANY;
        root_device = RUMP_VFSROOTDEV;
+
+       /*
+        * XXX: make sure rumpfs is attached.  The opposite can
+        * happen e.g. on Linux where the dynlinker doesn't work
+        * like we would want it to.
+        */
+       if (!vfs_getopsbyname(MOUNT_RUMPFS))
+               vfs_attach(&rumpfs_vfsops);
+
        vfs_mountroot();
        VFS_ROOT(CIRCLEQ_FIRST(&mountlist), &rootvnode);
 



Home | Main Index | Thread Index | Old Index