summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-05-06 19:18:19 +0000
committerlulf <lulf@FreeBSD.org>2009-05-06 19:18:19 +0000
commit4fbf65a82bd064bacc9f84479e927f2fc2c75ee6 (patch)
tree2b4ef9006502776f9622c3b61b0391376bf175f8
parentbb7cc8f64c9b61abf025167f00a85403e7598f3f (diff)
downloadFreeBSD-src-4fbf65a82bd064bacc9f84479e927f2fc2c75ee6.zip
FreeBSD-src-4fbf65a82bd064bacc9f84479e927f2fc2c75ee6.tar.gz
- Fix a case where a RAID5 volume would think that it is supposed to grow a new
subdisk after a parity rebuild.
-rw-r--r--sys/geom/vinum/geom_vinum_subr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/vinum/geom_vinum_subr.c b/sys/geom/vinum/geom_vinum_subr.c
index 70c7f3f..95767fd 100644
--- a/sys/geom/vinum/geom_vinum_subr.c
+++ b/sys/geom/vinum/geom_vinum_subr.c
@@ -127,7 +127,6 @@ gv_parse_config(struct gv_softc *sc, char *buf, struct gv_drive *d)
* needed here (on-disk config parsing).
*/
p->flags &= ~GV_PLEX_ADDED;
- p->flags &= ~GV_PLEX_NEWBORN;
} else if (!strcmp(token[0], "sd")) {
s = gv_new_sd(tokens, token);
@@ -381,7 +380,7 @@ gv_sd_to_plex(struct gv_sd *s, struct gv_plex *p)
if ((p->org == GV_PLEX_RAID5 ||
p->org == GV_PLEX_STRIPED) &&
!(p->flags & GV_PLEX_NEWBORN) &&
- p->state >= GV_PLEX_DEGRADED) {
+ p->state == GV_PLEX_UP) {
s->flags |= GV_SD_GROW;
}
p->sdcount++;
OpenPOWER on IntegriCloud