summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2005-08-20 12:01:04 +0000
committeryamt <yamt@NetBSD.org>2005-08-20 12:01:04 +0000
commitbc505ef8ddcc6fa7e44c76a5d8f47301f011ad8e (patch)
treea13dd272340dc525faa95c6a89d66d35c9d59bc2 /sys/dev/raidframe
parent6f645a09cba436bdc9a81257df9bb8e9cc6fe55e (diff)
use pseudo_disk_{init,attach,detach} where appropriate.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index ec7b0672192..944060c78b4 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.187 2005/05/29 22:03:09 christos Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.188 2005/08/20 12:01:04 yamt 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.187 2005/05/29 22:03:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.188 2005/08/20 12:01:04 yamt Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -396,6 +396,7 @@ raidattach(int num)
for (raidID = 0; raidID < num; raidID++) {
bufq_alloc(&raid_softc[raidID].buf_queue, BUFQ_FCFS);
+ pseudo_disk_init(&raid_softc[raidID].sc_dkdev);
raidrootdev[raidID].dv_class = DV_DISK;
raidrootdev[raidID].dv_cfdata = NULL;
@@ -667,7 +668,7 @@ raidclose(dev_t dev, int flags, int fmt, struct proc *p)
rs->sc_flags &= ~RAIDF_INITED;
/* Detach the disk. */
- disk_detach(&rs->sc_dkdev);
+ pseudo_disk_detach(&rs->sc_dkdev);
}
}
@@ -1617,7 +1618,7 @@ raidinit(RF_Raid_t *raidPtr)
* other things, so it's critical to call this *BEFORE* we try putzing
* with disklabels. */
- disk_attach(&rs->sc_dkdev);
+ pseudo_disk_attach(&rs->sc_dkdev);
/* XXX There may be a weird interaction here between this, and
* protectedSectors, as used in RAIDframe. */