From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 06 Sep 2005 10:24:26 +0000 Subject: Re: Udev support for EDD Message-Id: <20050906102426.GA22438@vrfy.org> List-Id: References: <3177C9E428AFD2468DC6CF7F7DA63E74304AA8@ausx3mps314.aus.amer.dell.com> In-Reply-To: <3177C9E428AFD2468DC6CF7F7DA63E74304AA8@ausx3mps314.aus.amer.dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Sep 05, 2005 at 10:23:53PM -0500, Matt Domsch wrote: > On Fri, Sep 02, 2005 at 02:57:33AM +0200, Kay Sievers wrote: > > I did a quick conversion to C. :) So we can use in in initramfs without > > all the tools needed by the shell script. Please have a look at it... > > Thanks, this is a great start. > > One missing item is the test of the last 2 bytes of the MBR for the 2 > bytes (0xAA55 stored on disk as little endian) which indicates that > this is an MBR, so the 4-bytes it then reads and treats as the > signature field has the expected meaning. Something like this > (untested) patch. Works on by box. I've added the program to my udev tree: http://ehlo.org/~kay/?p=linux/hotplug/udev-kay.git;a=commitdiff;h7ed27c55a9ea661262d7b3ec8be184445ab82e Thanks, Kay ------------------------------------------------------- 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