Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2009 19:18:19 +0000 (UTC)
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191855 - head/sys/geom/vinum
Message-ID:  <200905061918.n46JIJG5027245@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lulf
Date: Wed May  6 19:18:19 2009
New Revision: 191855
URL: http://svn.freebsd.org/changeset/base/191855

Log:
  - Fix a case where a RAID5 volume would think that it is supposed to grow a new
    subdisk after a parity rebuild.

Modified:
  head/sys/geom/vinum/geom_vinum_subr.c

Modified: head/sys/geom/vinum/geom_vinum_subr.c
==============================================================================
--- head/sys/geom/vinum/geom_vinum_subr.c	Wed May  6 19:06:28 2009	(r191854)
+++ head/sys/geom/vinum/geom_vinum_subr.c	Wed May  6 19:18:19 2009	(r191855)
@@ -127,7 +127,6 @@ gv_parse_config(struct gv_softc *sc, cha
 			 * 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
 		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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905061918.n46JIJG5027245>