From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 26 Oct 2005 18:25:25 +0000 Subject: Re: udev 070 not create dvb device Message-Id: <20051026182525.GA20503@vrfy.org> List-Id: References: <20051015141800.26330.qmail@web34812.mail.mud.yahoo.com> In-Reply-To: <20051015141800.26330.qmail@web34812.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Oct 26, 2005 at 06:32:54PM +0600, Alexander E. Patrakov wrote: > I wrote: > > >5) (BUG) make sure that /dev/hda1 is created before a bootscript attempts > >to check the filesystem. There is some file in sysfs (forgot its name and > >this mail writing from 2.4 so can't check) that holds the sequence number > >of the last hotplug event. Maybe this file should be polled and the boot > >process should continue only if there were no changes in 5 seconds. > > > > > 5a) The file is /sys/kernel/hotplug_seqnum > 5b) Polling it doesn't really help because it only tells when the kernel > gave the hotplug event to udev, but not when udev finished processing > this event. You may try something stupid like this: while [ $(cat /proc/*/status 2> /dev/null | grep -c -E '^Name:.udevd?$') -gt 1 ]; do sleep 0.1 done Good luck, Kay ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ 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