summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-07 07:19:14 +0000
committerphk <phk@FreeBSD.org>2002-10-07 07:19:14 +0000
commite0eaaedba9a58f30748a9243261bcb08b5aae5b1 (patch)
treec02e68e762a0e994c9cbf52c1811480082211256 /sys/cam/scsi
parent365f3d65f182367ac220a5352163a6f65c9b3c5a (diff)
downloadFreeBSD-src-e0eaaedba9a58f30748a9243261bcb08b5aae5b1.zip
FreeBSD-src-e0eaaedba9a58f30748a9243261bcb08b5aae5b1.tar.gz
Correctly convert to appropriate blocksize.
note to self: Never check block-size sensitive patches on Sun compatible CD drives. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_cd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index d5b2ed3..fa08511 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -1369,7 +1369,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,
+ /* lba */ bp->bio_blkno /
+ (softc->params.blksize / DEV_BSIZE),
bp->bio_bcount / softc->params.blksize,
/* data_ptr */ bp->bio_data,
/* dxfer_len */ bp->bio_bcount,
OpenPOWER on IntegriCloud