From 4fbf65a82bd064bacc9f84479e927f2fc2c75ee6 Mon Sep 17 00:00:00 2001 From: lulf Date: Wed, 6 May 2009 19:18:19 +0000 Subject: - Fix a case where a RAID5 volume would think that it is supposed to grow a new subdisk after a parity rebuild. --- sys/geom/vinum/geom_vinum_subr.c | 3 +-- 1 file changed, 1 insertion(+), 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++; -- cgit v1.1