diff options
author | pjd <pjd@FreeBSD.org> | 2004-08-26 12:42:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-08-26 12:42:47 +0000 |
commit | 7f46afc9bf56a426e565ab0a0bfb72643f51b469 (patch) | |
tree | 53e6e17ac48faae88e3edb2e32e153109b8f6ffd /sys/geom/mirror | |
parent | 76d46b5b422d162eb96f43e42273f5ddf914863b (diff) | |
download | FreeBSD-src-7f46afc9bf56a426e565ab0a0bfb72643f51b469.zip FreeBSD-src-7f46afc9bf56a426e565ab0a0bfb72643f51b469.tar.gz |
Skip providers with not defined sector size.
Reported by: kuriyama
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index a298a18e..41d2a18 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -2490,6 +2490,9 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_topology_assert(); g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, pp->name); G_MIRROR_DEBUG(2, "Tasting %s.", pp->name); + /* Skip providers with 0 sectorsize. */ + if (pp->sectorsize == 0) + return (NULL); gp = g_new_geomf(mp, "mirror:taste"); /* |