From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 11 Apr 2005 12:21:56 +0000 Subject: Re: Feature/Bug? udev/hotplug creates device nodes with strange Message-Id: <1113222116.6758.18.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="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sun, 2005-04-10 at 15:18 +0200, Norbert Preining wrote: > Hi all! >=20 > Is the following a bug or feature: If I have the option > all_partitions > set in my local rules.d file, all the device nodes for all partitions > are created, but for those which are *NOT* physically available, the > minor of the last available is used: >=20 > Examples: I have an sdcard reader which I NAME /dev/sdcardX, and the > card has only one partition. But the created devices look like: > 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. > Here it is not really a problem, but it really hit me when I was using a > new hard disk which did NOT contain already a partition table (so a bit > like a floppy). So, I got minor 0 (!!!) for all /dev/sdbN (ie the > partitions). I (stupid me) didn't check, made mke2fs -j /dev/sdb1 and > voil=C3=A0, now I have a floppy instead of a external firewire harddisk w= ith > a normal partition table. Grmmm. >=20 > So my question: Is this a feature or a bug? Looks like a bug, but I have no idea, how this can happen. What version of udev do you use? 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_id=14396&op=CCk _______________________________________________ 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