kopia lustrzana https://gitlab.com/sane-project/website
128 wiersze
5.0 KiB
HTML
128 wiersze
5.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: SG_BIG_BUFF setting in Problems incorrect</TITLE>
|
|
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
|
|
<META NAME="Subject" CONTENT="Re: SG_BIG_BUFF setting in Problems incorrect">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: SG_BIG_BUFF setting in Problems incorrect</H1>
|
|
<!-- received="Fri Feb 4 03:53:59 2000" -->
|
|
<!-- isoreceived="20000204115359" -->
|
|
<!-- sent="Fri, 04 Feb 2000 12:41:45 +0100" -->
|
|
<!-- isosent="20000204114145" -->
|
|
<!-- name="abel deuring" -->
|
|
<!-- email="a.deuring@satzbau-gmbh.de" -->
|
|
<!-- subject="Re: SG_BIG_BUFF setting in Problems incorrect" -->
|
|
<!-- id="389ABAF9.B925D70F@satzbau-gmbh.de" -->
|
|
<!-- inreplyto="200002032239.OAA14015@gbr.newt.com" -->
|
|
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20SG_BIG_BUFF%20setting%20in%20Problems%20incorrect&In-Reply-To=<389ABAF9.B925D70F@satzbau-gmbh.de>"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Fri Feb 04 2000 - 03:41:45 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0036.html">abel deuring: "Re: fork or pthread for async I/O?"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0034.html">Petter Reinholdtsen: "Re: new snapshot?"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0028.html">Bill Wohler: "SG_BIG_BUFF setting in Problems incorrect"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0045.html">abel deuring: "Re: SG_BIG_BUFF setting in Problems incorrect"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0045.html">abel deuring: "Re: SG_BIG_BUFF setting in Problems incorrect"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#35">[ date ]</A>
|
|
<A HREF="index.html#35">[ thread ]</A>
|
|
<A HREF="subject.html#35">[ subject ]</A>
|
|
<A HREF="author.html#35">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Bill Wohler wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I just installed DEVEL_1_9 from the CVS repository and couldn't get
|
|
</EM><BR>
|
|
<EM>> to my scanner (HP Photosmart SCSI, running under a Linux 2.2.1
|
|
</EM><BR>
|
|
<EM>> kernel).
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Thanks to the debugging output, the problem was clear:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> [wohler@gbr:587]% SANE_DEBUG_SANEI_SCSI=128 SANE_DEBUG_HP=128 scanimage
|
|
</EM><BR>
|
|
<EM>> ...
|
|
</EM><BR>
|
|
<EM>> [sanei_scsi] sanei_scsi_open: could not allocate SG buffer memory wanted: 131072 got: 32768
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> The sane-scsi manpage suggested bumping SG_BIG_BUFF in
|
|
</EM><BR>
|
|
<EM>> /usr/src/linux/include/scsi/sg.h to 128*1024-512=130560 bytes, but
|
|
</EM><BR>
|
|
<EM>> this doesn't work. After bumping SG_BIG_BUFF to 128*1024=131072
|
|
</EM><BR>
|
|
<EM>> bytes, recompiling the kernel, rebooting, and recompiling sane, all
|
|
</EM><BR>
|
|
<EM>> was well (phew!). I would suggest updating the sane-scsi man page
|
|
</EM><BR>
|
|
<EM>> with the correct value to save others from an extra kernel compiling
|
|
</EM><BR>
|
|
<EM>> step.
|
|
</EM><BR>
|
|
<P><P>That's my fault: In the recent version, sanei_scsi_open calls
|
|
<BR>
|
|
sanei_scsi_open_extended, which allows variable buffer sizes for recent
|
|
<BR>
|
|
kernels. For older kernels, a fixes buffer size of SCSIBUFFERSIZE (= 128
|
|
<BR>
|
|
* 1024) is used. And that cannot work, because SG_BIG_BUFF is by default
|
|
<BR>
|
|
set to 128 * 1024 - 512. I'll fix that this eveing. (Sorry, I can't do
|
|
<BR>
|
|
that right now at work)
|
|
<BR>
|
|
<P>And updating the man page is indeed a good idea...
|
|
<BR>
|
|
<P>Abel
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20SG_BIG_BUFF%20setting%20in%20Problems%20incorrect&In-Reply-To=<389ABAF9.B925D70F@satzbau-gmbh.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0036.html">abel deuring: "Re: fork or pthread for async I/O?"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0034.html">Petter Reinholdtsen: "Re: new snapshot?"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0028.html">Bill Wohler: "SG_BIG_BUFF setting in Problems incorrect"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0045.html">abel deuring: "Re: SG_BIG_BUFF setting in Problems incorrect"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0045.html">abel deuring: "Re: SG_BIG_BUFF setting in Problems incorrect"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#35">[ date ]</A>
|
|
<A HREF="index.html#35">[ thread ]</A>
|
|
<A HREF="subject.html#35">[ subject ]</A>
|
|
<A HREF="author.html#35">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Fri Feb 04 2000 - 03:54:47 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|