svn commit: r191855 - head/sys/geom/vinum

Ulf Lilleengen lulf at FreeBSD.org
Wed May 6 19:18:20 UTC 2009


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++;


More information about the svn-src-all mailing list