summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1998-08-19 10:50:32 +0000
committersos <sos@FreeBSD.org>1998-08-19 10:50:32 +0000
commit6cdbc9992f156cba3b8211ff528835c3f7fab64b (patch)
treeec2fac9dfc4dcfffa22ea5a12b312d27e4f179ed /sys/geom
parent606742b0b5fbc540ce1e7a03aa4ac9150d31dcf5 (diff)
downloadFreeBSD-src-6cdbc9992f156cba3b8211ff528835c3f7fab64b.zip
FreeBSD-src-6cdbc9992f156cba3b8211ff528835c3f7fab64b.tar.gz
Make struct buf->b_offset reflect the real byte offset which got
in via the uio struct. This enables device drivers to use != DEV_BSIZE blocking on devices with wierd sector/block sizes (ie CDROM's).
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_ccd.c3
1 files changed, 2 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud