Well, now that I've introduced myself...

One odd behavior that I'm seeing is this:  The first command issued to my
USB driver upon attempting to access the device (after the initial
detection probe) is TEST_UNIT_READY.  In the case of removable media
devices, this returns a result code of CHECK_CONDITION and I fill the
sense data buffer with the results of a REQUEST_SENSE which I
automatically issue in response to a failed command.  The sense data
indicates 'Media Not Present' -- which is the right answer for a ZIP drive
with no disk in it.

The odd part is that the SCSI layer then tries to issue a READ_CAPACITY
command.  Of course, this fails too, with the same sense data.  Why does
the SCSI core issue this command?  If the unit is not ready, shouldn't we
not issue READ_CAPACITY?  The SCSI core seems to pretty much ignore the
sense data.  Either that, or I'm returning it improperly.

Is this behavor normal?  If so, I would expect that, in general, we're not
handling removable-media devices very well.

Matt Dharm

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Engineer, Qualcomm, Inc.                         Work: [EMAIL PROTECTED]

What, are you one of those Microsoft-bashing Linux freaks?
                                        -- Customer to Greg
User Friendly, 2/10/1999


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to