Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe - record the pointer to the DiskQueueSW so...



details:   https://anonhg.NetBSD.org/src/rev/4dc8e8c9c5e2
branches:  trunk
changeset: 482865:4dc8e8c9c5e2
user:      oster <oster%NetBSD.org@localhost>
date:      Thu Feb 24 03:48:41 2000 +0000

description:
- 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.

diffstat:

 sys/dev/raidframe/rf_diskqueue.c |  3 ++-
 sys/dev/raidframe/rf_disks.c     |  7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 35d8e2c5d34c -r 4dc8e8c9c5e2 sys/dev/raidframe/rf_diskqueue.c
--- a/sys/dev/raidframe/rf_diskqueue.c  Thu Feb 24 03:42:44 2000 +0000
+++ b/sys/dev/raidframe/rf_diskqueue.c  Thu Feb 24 03:48:41 2000 +0000
@@ -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.
  * All rights reserved.
@@ -280,6 +280,7 @@
                RF_ERRORMSG2("Unknown queue type \"%s\".  Using %s\n", cfgPtr->diskQueueType, diskqueuesw[0].queueType);
                p = &diskqueuesw[0];
        }
+       raidPtr->qType = p;
        RF_CallocAndAdd(diskQueues, raidPtr->numRow, sizeof(RF_DiskQueue_t *), (RF_DiskQueue_t **), raidPtr->cleanupList);
        if (diskQueues == NULL) {
                return (ENOMEM);
diff -r 35d8e2c5d34c -r 4dc8e8c9c5e2 sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c      Thu Feb 24 03:42:44 2000 +0000
+++ b/sys/dev/raidframe/rf_disks.c      Thu Feb 24 03:48:41 2000 +0000
@@ -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.
  * All rights reserved.
@@ -1027,9 +1027,10 @@
        spareQueues = &raidPtr->Queues[0][raidPtr->numCol];
        ret = rf_ConfigureDiskQueue( raidPtr, &spareQueues[spare_number],
                                 0, raidPtr->numCol + spare_number, 
-                                raidPtr->Queues[0][0].qPtr, /* XXX */
+                                raidPtr->qType,
                                 raidPtr->sectorsPerDisk,
-                                raidPtr->Disks[0][raidPtr->numCol + spare_number].dev,
+                                raidPtr->Disks[0][raidPtr->numCol + 
+                                                 spare_number].dev,
                                 raidPtr->maxOutstanding,
                                 &raidPtr->shutdownList,
                                 raidPtr->cleanupList);



Home | Main Index | Thread Index | Old Index