summaryrefslogtreecommitdiffstats
path: root/sys/geom/stripe
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-08-26 12:42:47 +0000
committerpjd <pjd@FreeBSD.org>2004-08-26 12:42:47 +0000
commit7f46afc9bf56a426e565ab0a0bfb72643f51b469 (patch)
tree53e6e17ac48faae88e3edb2e32e153109b8f6ffd /sys/geom/stripe
parent76d46b5b422d162eb96f43e42273f5ddf914863b (diff)
downloadFreeBSD-src-7f46afc9bf56a426e565ab0a0bfb72643f51b469.zip
FreeBSD-src-7f46afc9bf56a426e565ab0a0bfb72643f51b469.tar.gz
Skip providers with not defined sector size.
Reported by: kuriyama
Diffstat (limited to 'sys/geom/stripe')
-rw-r--r--sys/geom/stripe/g_stripe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c
index 91c6710..36dd4cf 100644
--- a/sys/geom/stripe/g_stripe.c
+++ b/sys/geom/stripe/g_stripe.c
@@ -876,6 +876,9 @@ g_stripe_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
g_topology_assert();
G_STRIPE_DEBUG(3, "Tasting %s.", pp->name);
+ /* Skip providers with 0 sectorsize. */
+ if (pp->sectorsize == 0)
+ return (NULL);
gp = g_new_geomf(mp, "stripe:taste");
gp->start = g_stripe_start;
OpenPOWER on IntegriCloud