linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: FAQ?: 10 sec delay  /dev/sda1 via usb-storage using udev 43  &
Date: Tue, 11 Jan 2005 17:35:19 +0000	[thread overview]
Message-ID: <1105464919.6574.6.camel@localhost.localdomain> (raw)
In-Reply-To: <BAY101-F26BB9451874E46E98FEA61FE880@phx.gbl>

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

      reply	other threads:[~2005-01-11 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1105464919.6574.6.camel@localhost.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).