]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Apply a `fixup' to the blocksize gathered from the device after a READ
authorJoerg Wunsch <joerg@FreeBSD.org>
Mon, 22 May 2000 17:21:50 +0000 (17:21 +0000)
committerJoerg Wunsch <joerg@FreeBSD.org>
Mon, 22 May 2000 17:21:50 +0000 (17:21 +0000)
commitd082442a09ae63aaca8a87ad5f27e7837045c743
tree77622c842b6cbee0bd20e01de86bd4deaa933fe3
parent07da07565e2c3f8f7f443e0f7b0cfccdce2bf02c
Apply a `fixup' to the blocksize gathered from the device after a READ
CAPACITY operation.  SCSI-3 mandates this to be 2048, but some older
drives like my old Plasmon CD-R report weird numbers between 2048 and
up to 2352 bytes depending on the mode of the last track etc.  This in
turn confuses stuff like the slice code since it refuses to work with
devices that do not have a blocksize which is a multiple of 512 bytes.

Reviewed by: ken
sys/cam/scsi/scsi_cd.c