* FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & 2.6.8.1-10mdk
@ 2005-01-11 17:06 Jayant Roplekar
2005-01-11 17:35 ` FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Jayant Roplekar @ 2005-01-11 17:06 UTC (permalink / raw)
To: linux-hotplug
I have Googled on this enough but only found devfs vs. udev flame wars. The
mailing list search
didn't show a clear solution to me so I am not sure if there is really one
at this point. I hope I did
not miss something trivial and not looking for an answer at wrong place.
Problem at hand: I use /sbin/hotplug -> /etc/hotplug/usb/myfuji_script
which gets called when a fujifilm camera gets added to usb port. 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.
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].
Question: Is there an elegant solution to reduce the delay and ensure
smooth operation?
Please let me know if I have described the issue incompletely. Thanks for
your help.
JR
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 &
2005-01-11 17:06 FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & 2.6.8.1-10mdk Jayant Roplekar
@ 2005-01-11 17:35 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-01-11 17:35 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-11 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-11 17:06 FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & 2.6.8.1-10mdk Jayant Roplekar
2005-01-11 17:35 ` FAQ?: 10 sec delay /dev/sda1 via usb-storage using udev 43 & Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).