From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 14 Jan 2006 13:08:21 +0000 Subject: Re: cold plugging Message-Id: <20060114130821.GB12029@vrfy.org> 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 On Sat, Jan 14, 2006 at 10:57:46AM +0500, Alexander E. Patrakov wrote: > Greg KH wrote: > > >On Sat, Jan 14, 2006 at 12:29:45AM +0100, Pozsar Balazs wrote: > > > > > >>But the above script does not guarantee that /dev/null will be created > >>first. It only orders the events, but as events are processed in > >>parallel, it may well happen that a later event gets processed earlier. > > > >Have you seen this happen? > > > Yes, /dev/null is never created first even if echoing to uevent files is > ordered by Kay's script. There are always three or four messages on boot > about /dev/null not being found. I solved this by creating > /lib/udev/devices/null. Sure, /dev/null is usually created/copied by the first init script itself, but that's not what Greg meant, you may want to run pretty complex software for bringing up all kinds of block devices and similar, so it's just safer to have the random, zero, mem, ... and the tty's around, before the block devices are running. The order is mainly a copy of what udevstart was doing in the past. With the async events, you can wait at any point during coldplug event triggering for the events to finish. We need to find out, what's the best approch to do this, that's the reason none of the current alternatives is in the udev tree itself today. I wanted to start simple and this stupid shell script snippet, works fine for me. We'll see with what we'll end with and if we can agree on some default, we all can use, which would be nice. Thanks, Kay ------------------------------------------------------- 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