- record the pointer to the DiskQueueSW so we can use that when
we hot-add a spare. - use the above info when adding a spare.
This commit is contained in:
parent
5ed29fa2d6
commit
851a2cdcd8
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: rf_diskqueue.c,v 1.9 2000/02/13 04:53:57 oster Exp $ */
|
/* $NetBSD: rf_diskqueue.c,v 1.10 2000/02/24 03:48:41 oster Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -280,6 +280,7 @@ rf_ConfigureDiskQueues(
|
||||||
RF_ERRORMSG2("Unknown queue type \"%s\". Using %s\n", cfgPtr->diskQueueType, diskqueuesw[0].queueType);
|
RF_ERRORMSG2("Unknown queue type \"%s\". Using %s\n", cfgPtr->diskQueueType, diskqueuesw[0].queueType);
|
||||||
p = &diskqueuesw[0];
|
p = &diskqueuesw[0];
|
||||||
}
|
}
|
||||||
|
raidPtr->qType = p;
|
||||||
RF_CallocAndAdd(diskQueues, raidPtr->numRow, sizeof(RF_DiskQueue_t *), (RF_DiskQueue_t **), raidPtr->cleanupList);
|
RF_CallocAndAdd(diskQueues, raidPtr->numRow, sizeof(RF_DiskQueue_t *), (RF_DiskQueue_t **), raidPtr->cleanupList);
|
||||||
if (diskQueues == NULL) {
|
if (diskQueues == NULL) {
|
||||||
return (ENOMEM);
|
return (ENOMEM);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: rf_disks.c,v 1.18 2000/02/24 02:55:05 oster Exp $ */
|
/* $NetBSD: rf_disks.c,v 1.19 2000/02/24 03:48:41 oster Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -1027,9 +1027,10 @@ rf_add_hot_spare(raidPtr, sparePtr)
|
||||||
spareQueues = &raidPtr->Queues[0][raidPtr->numCol];
|
spareQueues = &raidPtr->Queues[0][raidPtr->numCol];
|
||||||
ret = rf_ConfigureDiskQueue( raidPtr, &spareQueues[spare_number],
|
ret = rf_ConfigureDiskQueue( raidPtr, &spareQueues[spare_number],
|
||||||
0, raidPtr->numCol + spare_number,
|
0, raidPtr->numCol + spare_number,
|
||||||
raidPtr->Queues[0][0].qPtr, /* XXX */
|
raidPtr->qType,
|
||||||
raidPtr->sectorsPerDisk,
|
raidPtr->sectorsPerDisk,
|
||||||
raidPtr->Disks[0][raidPtr->numCol + spare_number].dev,
|
raidPtr->Disks[0][raidPtr->numCol +
|
||||||
|
spare_number].dev,
|
||||||
raidPtr->maxOutstanding,
|
raidPtr->maxOutstanding,
|
||||||
&raidPtr->shutdownList,
|
&raidPtr->shutdownList,
|
||||||
raidPtr->cleanupList);
|
raidPtr->cleanupList);
|
||||||
|
|
Loading…
Reference in New Issue