Kay Rydyger wrote:
>
> Hi there,
>
> I'm using the generic scsi driver with the /dev/sg? interface.
> I need that in order to get information about the failing of the internal CIRC
> and L2 decoder. To my knowledge the information is accessible via the sense
> buffer after executing read commands, for example.
> Up to now i'm not able to do this properly.
> I hope there are some people out there who can help me with this.
>
> The code goes like this, the problem here is that the READ(10) command
> is exectuted without any warnings even if there's no CD in the drive!
> What do I have to do?
> And additionally it doesn't mock about any bad CD's!
> So what I'm doing wrong ?
> Any help is appreciated and thanks in advance!
Kay,
The sense buffer that is returned from sg is an "auto-sense"
capability. This means that if the original command (e.g.
READ(10)) fails and sets CHECK_CONDITION (or
COMMAND_TERMINATED) then the driver will automatically send
a REQUEST_SENSE command and return its response as the
"sense buffer". In the sg driver you are using there is
only 16 bytes available and only when some error occurs.
If there is no error then there is nothing to stop you issuing
your own REQUEST SENSE command via the sg interface.
I will look at the code but the statement that a READ(10)
"is executed without any warning" seems strange since
that code dictates exactly what is happening.
Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]