diff options
author | brooks <brooks@FreeBSD.org> | 2013-04-16 17:47:13 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-04-16 17:47:13 +0000 |
commit | d7ad3cab59aa356e972f8f1f51106aee4871a0fe (patch) | |
tree | dd0a3fc9eadace635c2a62b82b0413f3b1f86d0c /sys/geom | |
parent | b5bdbccc2dbc78f19b1620d5e937e6de1f9dd0b3 (diff) | |
download | FreeBSD-src-d7ad3cab59aa356e972f8f1f51106aee4871a0fe.zip FreeBSD-src-d7ad3cab59aa356e972f8f1f51106aee4871a0fe.tar.gz |
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
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_flashmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_flashmap.c b/sys/geom/geom_flashmap.c index 341a5da..11e25b4 100644 --- a/sys/geom/geom_flashmap.c +++ b/sys/geom/geom_flashmap.c @@ -174,7 +174,7 @@ g_flashmap_taste(struct g_class *mp, struct g_provider *pp, int flags) 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, |