Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/dev/raidframe Pull up revision 1.53 (requested by o...



details:   https://anonhg.NetBSD.org/src/rev/2042d977b830
branches:  netbsd-2-0
changeset: 561087:2042d977b830
user:      tron <tron%NetBSD.org@localhost>
date:      Sun May 23 10:59:49 2004 +0000

description:
Pull up revision 1.53 (requested by oster in ticket #377):
Add support for the word "absent" in the "disks" section of
RAID config files.  Used as a placeholder for a component that
will eventually be added into the set.

diffstat:

 sys/dev/raidframe/rf_disks.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r bad7af2091fb -r 2042d977b830 sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c      Sun May 23 10:46:28 2004 +0000
+++ b/sys/dev/raidframe/rf_disks.c      Sun May 23 10:59:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_disks.c,v 1.51 2004/03/21 06:32:03 oster Exp $      */
+/*     $NetBSD: rf_disks.c,v 1.51.2.1 2004/05/23 10:59:49 tron Exp $   */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -67,7 +67,7 @@
  ***************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.51 2004/03/21 06:32:03 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.51.2.1 2004/05/23 10:59:49 tron Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -591,6 +591,13 @@
        raidPtr->raid_cinfo[col].ci_vp = NULL;
        raidPtr->raid_cinfo[col].ci_dev = 0;
 
+       if (!strcmp("absent", diskPtr->devname)) {
+               printf("Ignoring missing component at column %d\n", col);
+               sprintf(diskPtr->devname, "component%d", col);
+               diskPtr->status = rf_ds_failed;
+               return (0);
+       }
+
        error = raidlookup(diskPtr->devname, proc, &vp);
        if (error) {
                printf("raidlookup on device: %s failed!\n", diskPtr->devname);



Home | Main Index | Thread Index | Old Index