Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2007 12:49:55 GMT
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123954 for review
Message-ID:  <200707231249.l6NCntL5059887@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123954

Change 123954 by lulf@lulf_carrot on 2007/07/23 12:49:40

	- Change resetconfig to remove subdisks before drives, since we now
	  don't completely remove drives.

Affected files ...

.. //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_rm.c#10 edit

Differences ...

==== //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_rm.c#10 (text+ko) ====

@@ -168,10 +168,10 @@
 		}
 	}
 	/* Then if not, we remove everything. */
+	LIST_FOREACH_SAFE(s, &sc->subdisks, sd, s2)
+		gv_rm_sd(sc, s);
 	LIST_FOREACH_SAFE(d, &sc->drives, drive, d2)
 		gv_rm_drive(sc, d, 0);
-	LIST_FOREACH_SAFE(s, &sc->subdisks, sd, s2)
-		gv_rm_sd(sc, s);
 	LIST_FOREACH_SAFE(p, &sc->plexes, plex, p2)
 		gv_rm_plex(sc, p);
 	LIST_FOREACH_SAFE(v, &sc->volumes, volume, v2)



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