summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum/geom_vinum.c
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-06-25 18:04:33 +0000
committerle <le@FreeBSD.org>2004-06-25 18:04:33 +0000
commitd754d951b906e8d0c99ea9917952cdfb8c5c9378 (patch)
tree58b8d1bd65cc44a93c2827fe35cd9a28583260b3 /sys/geom/vinum/geom_vinum.c
parent1317204d7bf9cdcdd06de82024f406400388b2c1 (diff)
downloadFreeBSD-src-d754d951b906e8d0c99ea9917952cdfb8c5c9378.zip
FreeBSD-src-d754d951b906e8d0c99ea9917952cdfb8c5c9378.tar.gz
Mark a plex as 'newborn' when it is created. This is used to indicate
that new RAID5 plexes need to be initialized first.
Diffstat (limited to 'sys/geom/vinum/geom_vinum.c')
-rw-r--r--sys/geom/vinum/geom_vinum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/vinum/geom_vinum.c b/sys/geom/vinum/geom_vinum.c
index d4cdbaa..c4e96f4 100644
--- a/sys/geom/vinum/geom_vinum.c
+++ b/sys/geom/vinum/geom_vinum.c
@@ -384,6 +384,7 @@ gv_create(struct g_geom *gp, struct gctl_req *req)
}
p->vinumconf = sc;
+ p->flags |= GV_PLEX_NEWBORN;
LIST_INIT(&p->subdisks);
LIST_INSERT_HEAD(&sc->plexes, p, plex);
}
OpenPOWER on IntegriCloud