From: Darren Salt Date: Fri, 13 Jan 2006 18:47:35 +0000 Subject: Re: cold plugging Message-Id: <4DE8B56BFA%linux@youmustbejoking.demon.co.uk> List-Id: References: <200601131415.30207.treeve@scarlet.be> In-Reply-To: <200601131415.30207.treeve@scarlet.be> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I demand that Alexander E. Patrakov may or may not have written... > Kay Sievers wrote: [snip] >> To wait for the events to finish (if you need to), I do: >> loop00 >> while test -d /dev/.udev/queue; do >> sleep 0.1; >> test "$loop" -gt 0 || break >> loop=$(($loop - 1)) >> done > USB uevents easily get past this loop. Also slower machines. I have a machine (PII 366) here which has randomly failed to create /dev/hda* in time, causing problems for fsck; doubling the timeout avoids the problem. [snip] -- | Darren Salt | nr. Ashington, | d youmustbejoking,demon,co,uk | Debian, | Northumberland | s zap,tartarus,org | RISC OS | Toon Army | @ | Kill all extremists! G No room for line, 0:1 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&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