diff options
| author | oster <oster@NetBSD.org> | 2000-02-26 17:35:33 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2000-02-26 17:35:33 +0000 |
| commit | d9c47013b229c8c0c6b197ff26a6da0e2673281e (patch) | |
| tree | 82ad7288413e4d64ba8065a4018cc41ae23cfbd1 /sys/dev/raidframe | |
| parent | 3081e1deb71215fad6820e7ede06540e50c0bcde (diff) | |
Defopt 'RAID_AUTOCONFIG'. Adding 'options RAID_AUTOCONFIG' turns on
the component auto-detection and auto-configuration of RAID sets.
Also, add "#options RAID_AUTOCONFIG" to the GENERIC config files.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index cffccd8a1c1..7043a40ebd8 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.61 2000/02/25 20:11:00 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.62 2000/02/26 17:35:43 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -135,6 +135,7 @@ #include <sys/user.h> #include "raid.h" +#include "opt_raid_autoconfig.h" #include "rf_raid.h" #include "rf_raidframe.h" #include "rf_copyback.h" @@ -294,7 +295,10 @@ int rf_have_enough_components __P((RF_ConfigSet_t *)); int rf_auto_config_set __P((RF_ConfigSet_t *, int *)); static int raidautoconfig = 0; /* Debugging, mostly. Set to 0 to not - allow autoconfig to take place */ + allow autoconfig to take place. + Note that this is overridden by having + RAID_AUTOCONFIG as an option in the + kernel config file. */ extern struct device *booted_device; void @@ -380,6 +384,10 @@ raidattach(num) } } +#if RAID_AUTOCONFIG + raidautoconfig = 1; +#endif + if (raidautoconfig) { /* 1. locate all RAID components on the system */ @@ -627,7 +635,7 @@ raidclose(dev, flags, fmt, p) Device shutdown has taken care of setting the clean bits if RAIDF_INITED is not set mark things as clean... */ -#if 0 +#if 1 printf("Last one on raid%d. Updating status.\n",unit); #endif rf_update_component_labels( raidPtrs[unit] ); |
