1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Correctly convert to appropriate blocksize.

note to self:
Never check block-size sensitive patches on Sun compatible CD drives.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
Poul-Henning Kamp 2002-10-07 07:19:14 +00:00
parent ca407d8777
commit fcc57bdac4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104611

View File

@ -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,