diff options
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/raidframe/rf_disks.c | 9 | ||||
| -rw-r--r-- | sys/dev/raidframe/rf_disks.h | 4 |
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; }; /* |
