Module Name: src Committed By: pooka Date: Thu Apr 4 01:38:47 UTC 2013
Modified Files: src/sys/rump/dev/lib/libmd: component.c Log Message: create device nodes To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/rump/dev/lib/libmd/component.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/dev/lib/libmd/component.c diff -u src/sys/rump/dev/lib/libmd/component.c:1.2 src/sys/rump/dev/lib/libmd/component.c:1.3 --- src/sys/rump/dev/lib/libmd/component.c:1.2 Tue Apr 10 13:45:08 2012 +++ src/sys/rump/dev/lib/libmd/component.c Thu Apr 4 01:38:47 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: component.c,v 1.2 2012/04/10 13:45:08 gson Exp $ */ +/* $NetBSD: component.c,v 1.3 2013/04/04 01:38:47 pooka Exp $ */ /* * Copyright (c) 2010 Antti Kantee. All Rights Reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2012/04/10 13:45:08 gson Exp $"); +__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.3 2013/04/04 01:38:47 pooka Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -57,5 +57,12 @@ RUMP_COMPONENT(RUMP_COMPONENT_DEV) &md_cdevsw, &cmaj)) != 0) panic("md devsw attach failed: %d", error); + if ((error = rump_vfs_makedevnodes(S_IFBLK, "/dev/md0", 'a', + bmaj, 0, 7)) != 0) + panic("cannot create cooked md dev nodes: %d", error); + if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/rmd0", 'a', + cmaj, 0, 7)) != 0) + panic("cannot create raw md dev nodes: %d", error); + rump_pdev_add(mdattach, 0); }