diff options
| author | pooka <pooka@NetBSD.org> | 2009-09-07 14:28:18 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2009-09-07 14:28:18 +0000 |
| commit | 75509b2e2077e11091e7ab9ba52ab0499d5c0eac (patch) | |
| tree | 2c0cf7325d98ca2cf54a1e22d40f0f8ae73f620c /sys/rump/dev/lib/libraidframe | |
| parent | 48575b808e2f68d3481b6b14d3a0e6d11193714d (diff) | |
one more ketchup with rump_dev_makenodes -> rump_vfs_makedevnodes
Diffstat (limited to 'sys/rump/dev/lib/libraidframe')
| -rw-r--r-- | sys/rump/dev/lib/libraidframe/Makefile | 4 | ||||
| -rw-r--r-- | sys/rump/dev/lib/libraidframe/component.c | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/rump/dev/lib/libraidframe/Makefile b/sys/rump/dev/lib/libraidframe/Makefile index ace2eb248f1..0ed5fc320f9 100644 --- a/sys/rump/dev/lib/libraidframe/Makefile +++ b/sys/rump/dev/lib/libraidframe/Makefile @@ -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= rf_acctrace.c rf_alloclist.c rf_aselect.c rf_callback.c \ SRCS+= component.c +CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs + .include <bsd.lib.mk> .include <bsd.klinks.mk> diff --git a/sys/rump/dev/lib/libraidframe/component.c b/sys/rump/dev/lib/libraidframe/component.c index b6f72e7c925..dcf6166a0cd 100644 --- a/sys/rump/dev/lib/libraidframe/component.c +++ b/sys/rump/dev/lib/libraidframe/component.c @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2009/07/20 18:11:37 pooka Exp $"); #include <sys/stat.h> #include "rump_dev_private.h" +#include "rump_vfs_private.h" CFDRIVER_DECL(raid, DV_DISK, NULL); @@ -54,10 +55,10 @@ rump_dev_raidframe_init() &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); |
