diff options
author | sos <sos@FreeBSD.org> | 1998-08-19 10:50:32 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1998-08-19 10:50:32 +0000 |
commit | 6cdbc9992f156cba3b8211ff528835c3f7fab64b (patch) | |
tree | ec2fac9dfc4dcfffa22ea5a12b312d27e4f179ed /sys/kern | |
parent | 606742b0b5fbc540ce1e7a03aa4ac9150d31dcf5 (diff) | |
download | FreeBSD-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/kern')
-rw-r--r-- | sys/kern/kern_physio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |