Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Be *slightly* more consistent about the us...



details:   https://anonhg.NetBSD.org/src/rev/4b6bfb8a2a63
branches:  trunk
changeset: 482904:4b6bfb8a2a63
user:      oster <oster%NetBSD.org@localhost>
date:      Fri Feb 25 02:21:12 2000 +0000

description:
Be *slightly* more consistent about the use of num and numraid in raidattach().

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r b779c2f5c195 -r 4b6bfb8a2a63 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Fri Feb 25 02:17:43 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Fri Feb 25 02:21:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.57 2000/02/24 01:23:05 oster Exp $        */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.58 2000/02/25 02:21:12 oster Exp $        */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -338,7 +338,7 @@
 
        rf_sparet_wait_queue = rf_sparet_resp_queue = NULL;
 
-       for (i = 0; i < numraid; i++)
+       for (i = 0; i < num; i++)
                raidPtrs[i] = NULL;
        rc = rf_BootRaidframe();
        if (rc == 0)
@@ -2307,6 +2307,10 @@
                                clabel.status = rf_ds_optimal;
                                /* bump the counter */
                                clabel.mod_counter++;
+#if 0
+                               /* note where this set was configured last */
+                               clabel.last_unit = raidPtr->raidid;
+#endif
 #if DEBUG
                                if (raidPtr->mod_counter != 
                                    clabel.mod_counter) {



Home | Main Index | Thread Index | Old Index