Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Fix lossage related to device_is_a() chang...
details: https://anonhg.NetBSD.org/src/rev/81af37fea8ec
branches: trunk
changeset: 588739:81af37fea8ec
user: oster <oster%NetBSD.org@localhost>
date: Wed Mar 01 21:41:49 2006 +0000
description:
Fix lossage related to device_is_a() changes. Fix from cube@ (thanks!).
Tested by me.
diffstat:
sys/dev/raidframe/files.raidframe | 4 ++--
sys/dev/raidframe/rf_netbsdkintf.c | 7 +++++--
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (50 lines):
diff -r b74bca4d5253 -r 81af37fea8ec sys/dev/raidframe/files.raidframe
--- a/sys/dev/raidframe/files.raidframe Wed Mar 01 21:40:17 2006 +0000
+++ b/sys/dev/raidframe/files.raidframe Wed Mar 01 21:41:49 2006 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: files.raidframe,v 1.4 2005/12/11 12:23:37 christos Exp $
+# $NetBSD: files.raidframe,v 1.5 2006/03/01 21:41:49 oster Exp $
defflag RAID_AUTOCONFIG
defflag RAID_DIAGNOSTIC
-defpseudo raid: disk
+defpseudo raid { }: disk
file dev/raidframe/rf_acctrace.c raid needs-flag
file dev/raidframe/rf_alloclist.c raid
diff -r b74bca4d5253 -r 81af37fea8ec sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Wed Mar 01 21:40:17 2006 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Wed Mar 01 21:41:49 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.201 2006/02/24 03:20:22 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.202 2006/03/01 21:41:49 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -146,7 +146,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.201 2006/02/24 03:20:22 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.202 2006/03/01 21:41:49 oster Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -255,6 +255,8 @@
#define raidunit(x) DISKUNIT(x)
int numraid = 0;
+extern struct cfdriver raid_cd;
+
/*
* Allow RAIDOUTSTANDING number of simultaneous IO's to this RAID device.
* Be aware that large numbers can allow the driver to consume a lot of
@@ -390,6 +392,7 @@
raidrootdev[raidID].dv_unit = raidID;
raidrootdev[raidID].dv_parent = NULL;
raidrootdev[raidID].dv_flags = 0;
+ raidrootdev[raidID].dv_cfdriver = &raid_cd;
snprintf(raidrootdev[raidID].dv_xname,
sizeof(raidrootdev[raidID].dv_xname), "raid%d", raidID);
Home |
Main Index |
Thread Index |
Old Index