scsi disk block descriptor v2
commit6550f2e676959bd9507ae311ca8df0b1939e77f3
authorArtyom Tarasenko <atar4qemu@googlemail.com>
Tue, 13 Oct 2009 21:46:24 +0000 (13 23:46 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 14 Oct 2009 18:31:02 +0000 (14 18:31 +0000)
tree56fbb2a01f8969d75fe6fe09036d8b36150c1231
parent930f3fe11f9d39b200ccefc8fd13709b110e4dfe
scsi disk block descriptor v2

The SCSI-2 documentation suggests, that although the block
descriptor is optional for an arbitrary SCSI-2 device (chapter 8.2.10,
http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2/SCSI2-08.html )
it is mandatory for a disk: chapters 9.1.2, 9.3.3
( http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2-09.html ) don't say
"optional" any more, just "The block descriptor in the MODE SENSE
data describes the block lengths that are used on the medium."

v2: limit the number of sectors reported in the block descriptor to 24 bits.

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/scsi-disk.c