svn commit: r249556 - head/sys/geom

Brooks Davis brooks at FreeBSD.org
Tue Apr 16 17:47:13 UTC 2013


Author: brooks
Date: Tue Apr 16 17:47:13 2013
New Revision: 249556
URL: http://svnweb.freebsd.org/changeset/base/249556

Log:
  Partial MFP4 of 222836:
  
  Only look for FDT partitions if our potential parent is a DISK device.
  
  Excluding direct recursion on the flashmap geoms was insufficient
  because it did not prevent the underlying device from being retrieved if
  flashmap geoms were further partitioned.
  
  Reviewed by:	imp
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/geom/geom_flashmap.c

Modified: head/sys/geom/geom_flashmap.c
==============================================================================
--- head/sys/geom/geom_flashmap.c	Tue Apr 16 17:30:13 2013	(r249555)
+++ head/sys/geom/geom_flashmap.c	Tue Apr 16 17:47:13 2013	(r249556)
@@ -174,7 +174,7 @@ g_flashmap_taste(struct g_class *mp, str
 	g_topology_assert();
 
 	if (flags == G_TF_NORMAL &&
-	    !strcmp(pp->geom->class->name, FLASHMAP_CLASS_NAME))
+	    strcmp(pp->geom->class->name, G_DISK_CLASS_NAME) != 0)
 		return (NULL);
 
 	gp = g_slice_new(mp, FLASH_SLICES_MAX_NUM, pp, &cp, NULL, 0,


More information about the svn-src-head mailing list