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:
parent
07e6fe379f
commit
d7954bf77f
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
/*
|
||||
|
@ -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. */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user