From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Wed, 24 Aug 2005 03:50:41 +0000 Subject: Re: udevsynthesize as a udevstart+coldplug replacement Message-Id: <430BEE91.2030304@ums.usu.ru> List-Id: References: <20050823191542.GA29091@vrfy.org> In-Reply-To: <20050823191542.GA29091@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: >Here is "udevsynthesize" a possible replacement for the udevstart/coldplug >combination we currently have. Usually very early in the boot process, it >gets all available devices from sysfs and synthesizes the events these >devices would have generated at creation time. >The events are directly passed to the udevd daemom socket. udevd does all the >work and runs all the events asynchronously. udevsynthesize itself does >not read any udev rule. > >It scans block and class devices to create the the device nodes for already >available devices, which obsoletes the run of udevstart. >After that, it scans for bus devices, which events may load modules or >configure the device. If the bus type is known, the usual bus-specific >values are added to the event environment. > >With the "rules-in-daemon" patch, the whole udevstart/coldplug handling >(700 events) takes less than a second CPU time on a 1.7Ghz laptop. > >A typical boot script would do: > prepare tmpfs on /dev > create /dev/null > start /sbin/udevd > disable /proc/sys/kernel/hotplug (the input layer is still broken and needs a kernel patch) > run /sbin/udevsynthesize > >Have fun, >Kay > > Could you please tell where to add swap activation and ext2 filesystem checks in this scenario to make sure that there's no race between udev (that creates the device asynchronously, as you said) and swapon/fsck (that may want to use the device)? -- Alexander E. Patrakov ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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