diff options
-rw-r--r-- | sys/dev/ccd/ccd.c | 3 | ||||
-rw-r--r-- | sys/dev/vn/vn.c | 4 | ||||
-rw-r--r-- | sys/geom/geom_ccd.c | 3 | ||||
-rw-r--r-- | sys/kern/kern_physio.c | 4 |
4 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 28f9127..9e9e399 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1,4 +1,4 @@ -/* $Id: ccd.c,v 1.34 1998/07/04 20:45:29 julian Exp $ */ +/* $Id: ccd.c,v 1.35 1998/07/04 22:30:13 julian Exp $ */ /* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */ @@ -905,6 +905,7 @@ ccdbuffer(cb, cs, bp, bn, addr, bcount) cbp->cb_buf.b_proc = bp->b_proc; cbp->cb_buf.b_dev = ci->ci_dev; /* XXX */ cbp->cb_buf.b_blkno = cbn + cboff + CCD_OFFSET; + cbp->cb_buf.b_offset = dbtob(cbn + cboff + CCD_OFFSET); cbp->cb_buf.b_data = addr; cbp->cb_buf.b_vp = ci->ci_vp; LIST_INIT(&cbp->cb_buf.b_dep); diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c index b4b278a..dcb493a 100644 --- a/sys/dev/vn/vn.c +++ b/sys/dev/vn/vn.c @@ -38,7 +38,7 @@ * from: Utah Hdr: vn.c 1.13 94/04/02 * * from: @(#)vn.c 8.6 (Berkeley) 4/1/94 - * $Id: vn.c,v 1.66 1998/07/13 08:22:58 julian Exp $ + * $Id: vn.c,v 1.67 1998/07/30 15:16:04 bde Exp $ */ /* @@ -408,6 +408,7 @@ vnstrategy(struct buf *bp) nbp->b_dev = NODEV; nbp->b_data = addr; nbp->b_blkno = nbn + btodb(off); + nbp->b_offset = dbtob(nbn) + off; nbp->b_proc = bp->b_proc; nbp->b_iodone = vniodone; nbp->b_vp = vp; @@ -582,6 +583,7 @@ nvsIOreq(void *private ,struct buf *bp) nbp->b_dev = NODEV; nbp->b_data = addr; nbp->b_blkno = nbn + btodb(off); + nbp->b_offset = dbtob(nbn) + off; nbp->b_proc = bp->b_proc; nbp->b_iodone = vniodone; nbp->b_vp = vp; diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index 28f9127..9e9e399 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -1,4 +1,4 @@ -/* $Id: ccd.c,v 1.34 1998/07/04 20:45:29 julian Exp $ */ +/* $Id: ccd.c,v 1.35 1998/07/04 22:30:13 julian Exp $ */ /* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */ @@ -905,6 +905,7 @@ ccdbuffer(cb, cs, bp, bn, addr, bcount) cbp->cb_buf.b_proc = bp->b_proc; cbp->cb_buf.b_dev = ci->ci_dev; /* XXX */ cbp->cb_buf.b_blkno = cbn + cboff + CCD_OFFSET; + cbp->cb_buf.b_offset = dbtob(cbn + cboff + CCD_OFFSET); cbp->cb_buf.b_data = addr; cbp->cb_buf.b_vp = ci->ci_vp; LIST_INIT(&cbp->cb_buf.b_dep); diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index cb29335..17bd5b2 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -16,7 +16,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: kern_physio.c,v 1.26 1998/04/04 05:55:05 dyson Exp $ + * $Id: kern_physio.c,v 1.27 1998/07/04 22:30:21 julian Exp $ */ #include <sys/param.h> @@ -93,7 +93,7 @@ physio(strategy, bp, dev, rw, minp, uio) */ bp->b_saveaddr = sa; bp->b_blkno = btodb(uio->uio_offset); - + bp->b_offset = uio->uio_offset; if (uio->uio_segflg == UIO_USERSPACE) { if (rw && !useracc(bp->b_data, bp->b_bufsize, B_WRITE)) { |