From 6cdbc9992f156cba3b8211ff528835c3f7fab64b Mon Sep 17 00:00:00 2001 From: sos Date: Wed, 19 Aug 1998 10:50:32 +0000 Subject: 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). --- sys/geom/geom_ccd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/geom') 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); -- cgit v1.1