summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-18 17:26:13 +0000
committerphk <phk@FreeBSD.org>2003-10-18 17:26:13 +0000
commit94a1f5bcd66a1aa3ed05708e4f3e5ae97aa6069e (patch)
tree593463a87e834847b2c86cf517621bdcbc0fdc20 /sys/cam
parent466d3b80d82cce6c657cae4b6ef5eb30f678f635 (diff)
downloadFreeBSD-src-94a1f5bcd66a1aa3ed05708e4f3e5ae97aa6069e.zip
FreeBSD-src-94a1f5bcd66a1aa3ed05708e4f3e5ae97aa6069e.tar.gz
Use bio_offset instead of bio_blkno
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_cd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index 285c221..e51a4b3 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -1518,8 +1518,8 @@ cdstart(struct cam_periph *periph, union ccb *start_ccb)
/* read */bp->bio_cmd == BIO_READ,
/* byte2 */ 0,
/* minimum_cmd_size */ 10,
- /* lba */ bp->bio_blkno /
- (softc->params.blksize / DEV_BSIZE),
+ /* lba */ bp->bio_offset /
+ softc->params.blksize,
bp->bio_bcount / softc->params.blksize,
/* data_ptr */ bp->bio_data,
/* dxfer_len */ bp->bio_bcount,
OpenPOWER on IntegriCloud