summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-12 08:41:26 +0000
committerphk <phk@FreeBSD.org>2003-04-12 08:41:26 +0000
commitb08878d5abe36d30577c54d264a686c834407181 (patch)
tree70cab99eb5820539898b98912bd153898958a78c /sys/geom/geom_slice.c
parente9d1c65d22261411dd6170529ca7f925989dca05 (diff)
downloadFreeBSD-src-b08878d5abe36d30577c54d264a686c834407181.zip
FreeBSD-src-b08878d5abe36d30577c54d264a686c834407181.tar.gz
Retire the "frontstuff" record keeping, it was no match for the
in-band meta-data of BSD labels and a more complex solution will be needed.
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r--sys/geom/geom_slice.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 73c5417..882ddb0 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -220,18 +220,6 @@ g_slice_start(struct bio *bp)
/* Give the real method a chance to override */
if (gsp->start(bp))
return;
- if (!strcmp("GEOM::frontstuff", bp->bio_attribute)) {
- t = gsp->cfrontstuff;
- if (gsp->frontstuff > t)
- t = gsp->frontstuff;
- t -= gsl->offset;
- if (t < 0)
- t = 0;
- if (t > gsl->length)
- t = gsl->length;
- g_handleattr_off_t(bp, "GEOM::frontstuff", t);
- return;
- }
#ifdef _KERNEL
if (!strcmp("GEOM::kerneldump", bp->bio_attribute)) {
struct g_kerneldump *gkd;
@@ -269,10 +257,6 @@ g_slice_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct
(uintmax_t)gsp->slices[pp->index].offset);
return;
}
- if (gp != NULL && (pp == NULL && cp == NULL)) {
- sbuf_printf(sb, "%s<frontstuff>%ju</frontstuff>\n",
- indent, (intmax_t)gsp->frontstuff);
- }
if (pp != NULL) {
sbuf_printf(sb, "%s<index>%u</index>\n", indent, pp->index);
sbuf_printf(sb, "%s<length>%ju</length>\n",
@@ -400,7 +384,7 @@ g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_co
struct g_slicer *gsp;
struct g_consumer *cp;
void **vp;
- int error, i;
+ int error;
g_topology_assert();
vp = (void **)extrap;
@@ -426,11 +410,6 @@ g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_co
g_destroy_geom(gp);
return (NULL);
}
- /* Find out if there are any magic bytes on the consumer */
- i = sizeof gsp->cfrontstuff;
- error = g_io_getattr("GEOM::frontstuff", cp, &i, &gsp->cfrontstuff);
- if (error)
- gsp->cfrontstuff = 0;
*vp = gsp->softc;
*cpp = cp;
return (gp);
OpenPOWER on IntegriCloud