summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-02-23 02:01:55 +0000
committeroster <oster@NetBSD.org>2000-02-23 02:01:55 +0000
commitd84e4ed0195c75d86ea00a0b51a341f41dd417e0 (patch)
tree8fa7956430658427829ce59cd88beb8a6144163e /sys/dev/raidframe
parente0ab2f3d0f806d6435d651b9f46132d0b4a4ff25 (diff)
Make a note of autoconfigured components.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_disks.c9
-rw-r--r--sys/dev/raidframe/rf_disks.h4
2 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_disks.c b/sys/dev/raidframe/rf_disks.c
index 147723230bf..8077121827a 100644
--- a/sys/dev/raidframe/rf_disks.c
+++ b/sys/dev/raidframe/rf_disks.c
@@ -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 @@ rf_AutoConfigureDisks(raidPtr, cfgPtr, auto_config)
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 @@ rf_ConfigureDisk(raidPtr, buf, diskPtr, row, col)
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 --git a/sys/dev/raidframe/rf_disks.h b/sys/dev/raidframe/rf_disks.h
index a957f1b53fa..e143df82c6b 100644
--- a/sys/dev/raidframe/rf_disks.h
+++ b/sys/dev/raidframe/rf_disks.h
@@ -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 @@ struct RF_RaidDisk_s {
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;
};
/*