Re: [hatari-devel] Wrong MODE SENSE data length for page code 0x3f

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


> > Does Linux only support SCSI-2 and later drives?
> 
> I think SCSI-1-CCS works the same regarding the allocation length as SCSI-2
> (or newer).

I just check the specs, SCSI-1-CCS still says that an allocation length of 0
(for REQUEST SENSE, not for other commands) returns 4 bytes. So this seems
to have changed with SCSI-2. The standard says:

Targets shall be capable of returning eighteen bytes of data in response
to a REQUEST SENSE command.  If the allocation length is eighteen or
greater, and a target returns less than eighteen bytes of data, the
initiator should assume that the bytes not transferred would have been
zeros had the target returned those bytes.  Initiators can determine how
much sense data has been returned by examining the allocation length
parameter in the command descriptor block and the additional sense length
in the sense data.  Targets shall not adjust the additional sense length
to reflect truncation if the allocation length is less than the sense data
available. 

Best regards
 
Uwe



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/