Re: Problems with SCSI on 2.4.X

From: Douglas Gilbert (dougg@torque.net)
Date: Wed Mar 14 2001 - 15:08:33 EST


david@2gen.com 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 15 2001 - 21:00:17 EST