summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_physio.c
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/kern/kern_physio.c
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/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c4
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)) {
OpenPOWER on IntegriCloud