aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/concat
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-08-26 12:42:47 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-08-26 12:42:47 +0000
commit29c78ab3155aae3a9e5f121f108904786f4c728a (patch)
tree53e6e17ac48faae88e3edb2e32e153109b8f6ffd /sys/geom/concat
parentdb68d2a6b74befa86ddfb5f6c9067d0c1572abbb (diff)
downloadsrc-29c78ab3155aae3a9e5f121f108904786f4c728a.tar.gz
src-29c78ab3155aae3a9e5f121f108904786f4c728a.zip
Skip providers with not defined sector size.
Reported by: kuriyama
Notes
Notes: svn path=/head/; revision=134344
Diffstat (limited to 'sys/geom/concat')
-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 8103ea6409b8..2185fade8af2 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;