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/libraidframe one more ketchup with rump_dev...
details: https://anonhg.NetBSD.org/src/rev/cf6da6dd995c
branches: trunk
changeset: 747260:cf6da6dd995c
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Sep 07 14:28:18 2009 +0000
description:
one more ketchup with rump_dev_makenodes -> rump_vfs_makedevnodes
diffstat:
sys/rump/dev/lib/libraidframe/Makefile | 4 +++-
sys/rump/dev/lib/libraidframe/component.c | 9 +++++----
2 files changed, 8 insertions(+), 5 deletions(-)
diffs (56 lines):
diff -r 38e971fe2f73 -r cf6da6dd995c sys/rump/dev/lib/libraidframe/Makefile
--- a/sys/rump/dev/lib/libraidframe/Makefile Mon Sep 07 13:59:38 2009 +0000
+++ b/sys/rump/dev/lib/libraidframe/Makefile Mon Sep 07 14:28:18 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2009/06/09 16:16:15 pooka Exp $
+# $NetBSD: Makefile,v 1.2 2009/09/07 14:28:18 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/raidframe
@@ -23,5 +23,7 @@
SRCS+= component.c
+CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
+
.include <bsd.lib.mk>
.include <bsd.klinks.mk>
diff -r 38e971fe2f73 -r cf6da6dd995c sys/rump/dev/lib/libraidframe/component.c
--- a/sys/rump/dev/lib/libraidframe/component.c Mon Sep 07 13:59:38 2009 +0000
+++ b/sys/rump/dev/lib/libraidframe/component.c Mon Sep 07 14:28:18 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: component.c,v 1.2 2009/07/20 18:11:37 pooka Exp $ */
+/* $NetBSD: component.c,v 1.3 2009/09/07 14:28:18 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.2 2009/07/20 18:11:37 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.3 2009/09/07 14:28:18 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"
CFDRIVER_DECL(raid, DV_DISK, NULL);
@@ -54,10 +55,10 @@
&raid_cdevsw, &cmaj)) != 0)
panic("raid devsw attach failed: %d", error);
- if ((error = rump_dev_makenodes(S_IFBLK, "raid0", 'a',
+ if ((error = rump_vfs_makedevnodes(S_IFBLK, "raid0", 'a',
bmaj, 0, 7)) != 0)
panic("cannot create cooked raid dev nodes: %d", error);
- if ((error = rump_dev_makenodes(S_IFCHR, "rraid0", 'a',
+ if ((error = rump_vfs_makedevnodes(S_IFCHR, "rraid0", 'a',
cmaj, 0, 7)) != 0)
panic("cannot create raw raid dev nodes: %d", error);
Home |
Main Index |
Thread Index |
Old Index