Problems with SCSI on 2.4.X
Quoted 4 lines · [email protected] wrote:
I'm having some problems using SCSI-generic (sg loaded as module) to access my scanner on linux 2.4 (using SANE).
[snip output showing timeouts]
This is most likely caused by a bug in SANE 1.0.3 and 1.0.4 which sets timeouts on commands to 10 seconds rather than 10 minutes. The SANE code detects the new sg driver in lk 2.4.x and mistakenly shortens the timeout. This has been fixed in SANE's CVS (and RedHat's 7.1 beta (fisher)).
Fix for SANE 1.0.4 : in file sane-backends-1.0.4/sanei/sanei_scsi.c change line 1893 from:
req->sgdata.sg3.hdr.timeout = 10000;
to
req->sgdata.sg3.hdr.timeout = 10 * 60 * 1000;If you look at the FAQ on the sg web site
( http://www.torque.net/sg ) under the SANE entry you will find the same information ...
Doug Gilbert