summaryrefslogtreecommitdiffstats
path: root/sys/geom/concat/g_concat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/concat/g_concat.c')
-rw-r--r--sys/geom/concat/g_concat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index 8103ea6..2185fad 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -545,6 +545,9 @@ g_concat_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
g_topology_assert();
G_CONCAT_DEBUG(3, "Tasting %s.", pp->name);
+ /* Skip providers with 0 sectorsize. */
+ if (pp->sectorsize == 0)
+ return (NULL);
gp = g_new_geomf(mp, "concat:taste");
gp->start = g_concat_start;
OpenPOWER on IntegriCloud