--Sh9dYexoRflRb0jn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable
On Sun, Feb 24, 2002 at 02:38:25PM +0100, Henning Meier-Geinitz wrote: > On Fri, Feb 22, 2002 at 02:02:14PM +0000, Tim Waugh wrote: > > Could we add some hook to try to get the modules loaded if > > /proc/scsi/scsi doesn't exist? Just opening a generic SCSI device is > > enough to load them. >=20 > Is anybody against the following patch? Perhaps I should have tested my theory first, before suggesting it. I've tried this patch, and it does exactly as advertised (the modules are now loaded and /proc/scsi/scsi contains useful information when read), but for some reason it doesn't fix the problem. It still fails the first time, and succeeds the next. The output of 'strace -eopen,read,ioctl scanimage -L' differs between the first and second times only in two respects: a) the first contains some open() retries for /dev/sg0, since the modules are being loaded (this is expected); b) the information read from /dev/sg0 is different. I can't quite figure out why this is happening. Perhaps it's a timing thing, but I tried putting a 10-second sleep as a post-install for the sg module, and it made no difference. Besides this, I think that the patch is good. ;-) It is a necessary hook I think. As Oliver said though, perhaps it should be a list. Tim. */ --Sh9dYexoRflRb0jn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8ell3yaXy9qA00+cRAqKtAJoCUm/Fox+8/Ae2BFB4XAMfg3ASfQCaA+ee vzZQfPYat/vC2ZrNaG0ENaU= =uXnO -----END PGP SIGNATURE----- --Sh9dYexoRflRb0jn--
