From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 15 Jun 2005 22:04:50 +0000 Subject: Re: usb race possible? Message-Id: <20050615220450.GA620@kroah.com> 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 Wed, Jun 15, 2005 at 04:32:00PM +0200, Andreas Jellinghaus wrote: > On Wednesday 15 June 2005 16:28, Greg KH wrote: > > On Wed, Jun 15, 2005 at 03:33:40PM +0200, Andreas Jellinghaus wrote: > > > On Tuesday 14 June 2005 16:22, Kay Sievers wrote: > > > > That is ok, you need to wait in userspace for the files to show up. > > > > It's not easy to fix in the kernel. Maybe we will get there some day... > > > > > > do you think "sleep 1" is good enough? > > > > Try it and find out :) > > > > > or do I need to implement a full scale > > > open&retry solution? > > > > If you want it to always work on all machines, yes. > > ok thanks. > > > but wouldn't it be better if the hotplug system did that, > instead of putting the same code into every application? We used to have code that did that, look at the old udev releases. "wait_for_sysfs" was what it was called. Turned out that just putting that logic into udev was easier :) So, just put yourself into /etc/dev.d/ or in a udev rule and you should be fine and not have to do the hotplug wait logic. hope this helps, greg k-h ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ 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