summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum/geom_vinum_init.c
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-09-18 18:03:20 +0000
committerle <le@FreeBSD.org>2004-09-18 18:03:20 +0000
commit5dae52591be4cde8a831fafb8ebf60f54803d1e4 (patch)
tree2d38a2bd8384ba31538c982bf57d54226aad0330 /sys/geom/vinum/geom_vinum_init.c
parent37dd5c7419d3aaebb3806c682461fb2d5aa9714b (diff)
downloadFreeBSD-src-5dae52591be4cde8a831fafb8ebf60f54803d1e4.zip
FreeBSD-src-5dae52591be4cde8a831fafb8ebf60f54803d1e4.tar.gz
Single concat or striped plexes don't need no special initialization
if their subdisks are all available, so let them be brought up.
Diffstat (limited to 'sys/geom/vinum/geom_vinum_init.c')
-rw-r--r--sys/geom/vinum/geom_vinum_init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/geom/vinum/geom_vinum_init.c b/sys/geom/vinum/geom_vinum_init.c
index 382ea15..60c408c 100644
--- a/sys/geom/vinum/geom_vinum_init.c
+++ b/sys/geom/vinum/geom_vinum_init.c
@@ -127,6 +127,7 @@ void
gv_start_vol(struct gv_volume *v)
{
struct gv_plex *p;
+ struct gv_sd *s;
KASSERT(v != NULL, ("gv_start_vol: NULL v"));
@@ -145,6 +146,11 @@ gv_start_vol(struct gv_volume *v)
default:
return;
}
+ } else {
+ LIST_FOREACH(s, &p->subdisks, in_plex) {
+ gv_set_sd_state(s, GV_SD_UP,
+ GV_SETSTATE_CONFIG);
+ }
}
} else
gv_sync(v);
OpenPOWER on IntegriCloud