This is not needed anymore, it is forced in GEOM now.

Actually, it can even cause some problems, because GEOM requires sectorsize
to be more than 0 on first access, not on provider creation, so we can skip
valid providers by doing this check here.

Reported by:	Divacky Roman <xdivac02@stud.fit.vutbr.cz>
		Sven Willenberger <sven@dmv.com>
This commit is contained in:
Pawel Jakub Dawidek 2004-09-20 17:26:25 +00:00
parent ca3f021316
commit 201dfcf143
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135522
5 changed files with 0 additions and 15 deletions

View File

@ -546,9 +546,6 @@ 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;

View File

@ -202,9 +202,6 @@ g_label_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
G_LABEL_DEBUG(2, "Tasting %s.", pp->name);
/* Skip providers with 0 sectorsize. */
if (pp->sectorsize == 0)
return (NULL);
if (strcmp(pp->geom->class->name, mp->name) == 0)
return (NULL);

View File

@ -2491,9 +2491,6 @@ 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");
/*

View File

@ -2704,9 +2704,6 @@ g_raid3_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_RAID3_DEBUG(2, "Tasting %s.", pp->name);
/* Skip providers with 0 sectorsize. */
if (pp->sectorsize == 0)
return (NULL);
gp = g_new_geomf(mp, "raid3:taste");
/* This orphan function should be never called. */

View File

@ -877,9 +877,6 @@ 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;