[sane-devel] Additional SCSI status?

Dave Close dclose at anim.dreamworks.com
Tue May 14 00:04:01 BST 2002


abel deuring wrote:
>... and now I have checked, what target status == 2 means: CONDITION
>MET, says the SCSI 2 draft. So, sanei_scsi_req_wait should not return an
>error. The only puzzling thing is that driver status is non-zero; the
>corresponding #defines in linux/scsi/scsi.h are SUGGEST_RETRY and
>DRIVER_SENSE...
>You could try to simply ignore the driver status in sanei_scsi_req_wait.

No, in this case, the error will repeat until I send a "request sense"
command to the scanner. The "suggest retry" is absolutely valid. But
my sense handler, right now, can't tell and reports success, so the
backend doesn't know it should first request sense and then retry.

Of course, I can just guess and always retry. But that is far from
efficient, especially since there is a 60-second timeout involved.
-- 
Dave Close                    Dreamworks SKG, Animation Technology
+1 818 695 6962               Glendale California 91201-3007
dclose at anim.dreamworks.com    http://www.dreamworks.com/




More information about the sane-devel mailing list