Deleted Added
full compact
35c35
< * $FreeBSD: head/sys/geom/geom_slice.c 93778 2002-04-04 09:58:20Z phk $
---
> * $FreeBSD: head/sys/geom/geom_slice.c 94287 2002-04-09 15:43:32Z phk $
131a132
> off_t t;
137a139
> gsl = &gsp->slices[index];
142d143
< gsl = &gsp->slices[index];
156a158,160
> /* Give the real method a chance to override */
> if (gsp->start(bp))
> return;
160c164,173
< if (gsp->start(bp))
---
> 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_haveattr_off_t(bp, "GEOM::frontstuff", t);
161a175
> }
180a195,198
> if (gp != NULL) {
> sbuf_printf(sb, "%s<frontstuff>%llu</frontstuff>\n",
> indent, (unsigned long long)gsp->frontstuff);
> }
227c245
< int error;
---
> int error, i;
250a269,273
> /* 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;