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/kern/kern_physio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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 @@ -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)) { -- cgit v1.1