PERFORCE change 82004 for review

soc-cjones soc-cjones at FreeBSD.org
Mon Aug 15 03:37:49 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=82004

Change 82004 by soc-cjones at soc-cjones_ishtar on 2005/08/15 03:36:59

	Now we can use gv_rm_sd to kill the old sds without causing a kernel panic.  Yay!

Affected files ...

.. //depot/projects/soc2005/gvinum/src/sys/geom/vinum/geom_vinum_rm.c#3 edit

Differences ...

==== //depot/projects/soc2005/gvinum/src/sys/geom/vinum/geom_vinum_rm.c#3 (text+ko) ====

@@ -257,7 +257,8 @@
 	pp = s->provider;
 
 	/* Clean up. */
-	LIST_REMOVE(s, in_plex);
+	if (strlen(s->plex)) /* XXX: otherwise dies if we're not in a plex. */
+		LIST_REMOVE(s, in_plex);
 	LIST_REMOVE(s, from_drive);
 	LIST_REMOVE(s, sd);
 	gv_free_sd(s);


More information about the p4-projects mailing list