From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 11 Jan 2005 17:35:19 +0000 Subject: Re: FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & Message-Id: <1105464919.6574.6.camel@localhost.localdomain> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, 2005-01-11 at 17:06 +0000, Jayant Roplekar wrote: > Problem at hand: I use /sbin/hotplug -> /etc/hotplug/usb/myfuji_script > which gets called when a fujifilm camera gets added to usb port. Use a udev dev.d/ script instead. It is called at node creation time. > The delay > between connecting the camera (also seeing the scsi emulation stuff in > syslog, which was instantaneous) and having a /dev/sda1 available to > actually mount became a painful 10-12 sec as I moved to 2.6.8 on mdk 10.1. Any chance to upgrade to 2.6.10? We had a bug in the kernel, which causes holes in the sequence numbers. This causes a 10 sec timeout in udevd waiting for the missing events. > And I had to hard code a delay [which I guessed] in my script. Then I got a > little wiser and added a udev symlink /dev/camera and I poll for it to > appear inside myfuji_script. The delay is still close to 10 sec. And if > I am not mistaken, I think even with the second (udev) solution I got a > bogus fat partition or similar error [got that error 1 out of 5 times I have > plugged in the camera so far]. That does not sound to be related to udev, but usb-storage had some problems which seems to be solved with 2.6.10 too. Kay ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel