Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Make a note of autoconfigured components.



details:   https://anonhg.NetBSD.org/src/rev/d98d32ed67ed
branches:  trunk
changeset: 482837:d98d32ed67ed
user:      oster <oster%NetBSD.org@localhost>
date:      Wed Feb 23 02:01:55 2000 +0000

description:
Make a note of autoconfigured components.

diffstat:

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

diffs (48 lines):

diff -r affd632b0f14 -r d98d32ed67ed sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c      Wed Feb 23 00:37:11 2000 +0000
+++ b/sys/dev/raidframe/rf_disks.c      Wed Feb 23 02:01:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_disks.c,v 1.15 2000/02/13 04:53:57 oster Exp $      */
+/*     $NetBSD: rf_disks.c,v 1.16 2000/02/23 02:01:55 oster Exp $      */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -466,6 +466,11 @@
                                       ac->clabel, sizeof(*ac->clabel));
                                sprintf(diskPtr->devname, "/dev/%s", 
                                        ac->devname);
+                               
+                               /* note the fact that this component was
+                                  autoconfigured.  You'll need this info
+                                  later.  Trust me :) */
+                               diskPtr->auto_configured = 1;
                                diskPtr->dev = ac->dev;
                        
                                /* 
@@ -575,6 +580,8 @@
                raidPtr->raid_cinfo[row][col].ci_vp = vp;
                raidPtr->raid_cinfo[row][col].ci_dev = va.va_rdev;
                
+               /* This component was not automatically configured */
+               diskPtr->auto_configured = 0;
                diskPtr->dev = va.va_rdev;
                
                /* we allow the user to specify that only a fraction of the
diff -r affd632b0f14 -r d98d32ed67ed sys/dev/raidframe/rf_disks.h
--- a/sys/dev/raidframe/rf_disks.h      Wed Feb 23 00:37:11 2000 +0000
+++ b/sys/dev/raidframe/rf_disks.h      Wed Feb 23 02:01:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_disks.h,v 1.5 2000/02/13 04:53:57 oster Exp $       */
+/*     $NetBSD: rf_disks.h,v 1.6 2000/02/23 02:01:55 oster Exp $       */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -70,6 +70,8 @@
        int     blockSize;
        RF_SectorCount_t partitionSize; /* The *actual* and *full* size of 
                                           the partition, from the disklabel */
+       int     auto_configured;/* 1 if this component was autoconfigured.
+                                  0 otherwise. */
        dev_t   dev;
 };
 /*



Home | Main Index | Thread Index | Old Index