From 94a1f5bcd66a1aa3ed05708e4f3e5ae97aa6069e Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 18 Oct 2003 17:26:13 +0000 Subject: Use bio_offset instead of bio_blkno --- sys/cam/scsi/scsi_cd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/cam') 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, -- cgit v1.1