Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/dev/lib/libcgd ketchup: rump_dev_makenodes() -> rum...



details:   https://anonhg.NetBSD.org/src/rev/b586a8549cc3
branches:  trunk
changeset: 747249:b586a8549cc3
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Sep 07 11:23:39 2009 +0000

description:
ketchup: rump_dev_makenodes() -> rump_vfs_makedevnodes()

diffstat:

 sys/rump/dev/lib/libcgd/Makefile    |   3 ++-
 sys/rump/dev/lib/libcgd/component.c |  11 +++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (57 lines):

diff -r 0ded0207263a -r b586a8549cc3 sys/rump/dev/lib/libcgd/Makefile
--- a/sys/rump/dev/lib/libcgd/Makefile  Mon Sep 07 10:40:54 2009 +0000
+++ b/sys/rump/dev/lib/libcgd/Makefile  Mon Sep 07 11:23:39 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2009/07/20 18:09:20 pooka Exp $
+#      $NetBSD: Makefile,v 1.2 2009/09/07 11:23:39 pooka Exp $
 #
 
 .PATH: ${.CURDIR}/../../../../dev
@@ -10,6 +10,7 @@
 SRCS+= component.c
 
 CPPFLAGS+=     -Wno-pointer-sign
+CPPFLAGS+=     -I${RUMPTOP}/librump/rumpvfs
 
 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>
diff -r 0ded0207263a -r b586a8549cc3 sys/rump/dev/lib/libcgd/component.c
--- a/sys/rump/dev/lib/libcgd/component.c       Mon Sep 07 10:40:54 2009 +0000
+++ b/sys/rump/dev/lib/libcgd/component.c       Mon Sep 07 11:23:39 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.1 2009/07/20 18:09:20 pooka Exp $      */
+/*     $NetBSD: component.c,v 1.2 2009/09/07 11:23:39 pooka Exp $      */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.1 2009/07/20 18:09:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2009/09/07 11:23:39 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -34,6 +34,7 @@
 #include <sys/stat.h>
 
 #include "rump_dev_private.h"
+#include "rump_vfs_private.h"
 
 void cgdattach(int);
 
@@ -52,9 +53,11 @@
            &cgd_cdevsw, &cmaj)) != 0)
                panic("cannot attach cgd: %d", error);
 
-       if ((error = rump_dev_makenodes(S_IFBLK, "cgd0", 'a', bmaj, 0, 7)) != 0)
+       if ((error = rump_vfs_makedevnodes(S_IFBLK, "cgd0", 'a',
+           bmaj, 0, 7)) != 0)
                panic("cannot create cooked cgd dev nodes: %d", error);
-       if ((error = rump_dev_makenodes(S_IFCHR, "rcgd0",'a', cmaj, 0, 7)) != 0)
+       if ((error = rump_vfs_makedevnodes(S_IFCHR, "rcgd0",'a',
+           cmaj, 0, 7)) != 0)
                panic("cannot create raw cgd dev nodes: %d", error);
 
        rump_pdev_add(cgdattach, 4);



Home | Main Index | Thread Index | Old Index