linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature/Bug? udev/hotplug creates device nodes with strange major/minor numbers
@ 2005-04-10 13:18 Norbert Preining
  2005-04-11 12:21 ` Feature/Bug? udev/hotplug creates device nodes with strange Kay Sievers
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Norbert Preining @ 2005-04-10 13:18 UTC (permalink / raw)
  To: linux-hotplug

Hi all!

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:

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
...

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à, now I have a floppy instead of a external firewire harddisk with
a normal partition table. Grmmm.

So my question: Is this a feature or a bug?

[Please Cc me, thanks]

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
sip:preining@at43.tuwien.ac.at                             +43 (0) 59966-690018
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
KANTURK (n.)
An extremely intricate knot originally used for belaying the
topgallant foresheets of a gaff-rigged China clipper, and now more
commonly observed when trying to get an old kite out of the cupboard
under the stairs.
			--- Douglas Adams, The Meaning of Liff


-------------------------------------------------------
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\x14396&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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-11 14:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-10 13:18 Feature/Bug? udev/hotplug creates device nodes with strange major/minor numbers Norbert Preining
2005-04-11 12:21 ` Feature/Bug? udev/hotplug creates device nodes with strange Kay Sievers
2005-04-11 12:55 ` Feature/Bug? udev/hotplug creates device nodes with strange major/minor numbers Norbert Preining
2005-04-11 13:16 ` Feature/Bug? udev/hotplug creates device nodes with strange Kay Sievers
2005-04-11 13:50 ` Feature/Bug? udev/hotplug creates device nodes with strange major/minor numbers Tobias Klauser
2005-04-11 14:30 ` Norbert Preining
2005-04-11 14:56 ` Feature/Bug? udev/hotplug creates device nodes with strange Kay Sievers
2005-04-11 14:58 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).