From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 11 Apr 2005 14:56:20 +0000 Subject: Re: Feature/Bug? udev/hotplug creates device nodes with strange Message-Id: <1113231380.6758.74.camel@localhost.localdomain> List-Id: References: <20050410131837.GB21307@gamma.logic.tuwien.ac.at> In-Reply-To: <20050410131837.GB21307@gamma.logic.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2005-04-11 at 15:50 +0200, Tobias Klauser wrote: > On Mon, Apr 11, 2005 at 03:16:20PM +0200, Kay Sievers wrote: > > On Mon, 2005-04-11 at 14:55 +0200, Norbert Preining wrote: > > > On Mon, 11 Apr 2005, Kay Sievers wrote: > > > > > brw-rw---- 1 root root 8, 0 2005-04-10 14:58 /dev/sdcard > > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard1 > > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard2 > > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard3 > > > > > > > > This looks broken. > > > > > > Good to hear. > > Yeah, I guess it's broken. In create_node() in udev_add.c there is > always added 1 to the minor number, thus the error. The attached patch > should fix this. Sure, it is a stupid bug! Thanks for finding this. I will fix it now for the 057 version and add a test for it. Many thanks, Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&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