Skip to contentSkip to conversation

Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK

DISCUSSION Marco d'Itri 3 participants 3 messages Dec 16, 2004

lore
Share & tools
lore
#0 lore raw

I think that the request is reasonable, but I'm not sure about how this should be solved.
Do we need a SYMLINK{all_partitions}?

----- Forwarded message from Norbert Preining <[email protected]> -----

Subject: Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK
Reply-To: Norbert Preining <[email protected]>, [email protected]
From: Norbert Preining <[email protected]>

Package: udev
Version: 0.048-2
Severity: normal

Hi!

I have entries in my local rules file:
SYSFS{model}="Flash R/W", NAME{all_partitions}="%k", SYMLINK="sdcard%n" which create the normal dev entries (sda and sdb), but as they are removeable devices, I added

	{all_partitions}

thus I get device nodes for sda1 - sda15 and sda, even when there is no SD Card in the drive at boot time (built in sd reader).

Additionally, the link

	/dev/sdcard -> sda
is created, but this is not enough. In fact it should also create
	/dev/sdcard1 -> sda1
	/dev/sdcard2 -> sda2
	...

otherwise I cannot use /dev/sdcard1 in /etc/fstab.

Note that IF I have the card in the drive while booting, I DO GET /dev/sdcard1 -> sda1!

So either this is a bug in the program, or a misconcept, depending this is a bug report or a wishlist item ;-)

-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
insgesamt 4
-rw-r--r-- 1 root root 275 2004-12-16 12:11 00-local.rules lrwxrwxrwx 1 root root 13 2004-04-04 21:02 udev.rules -> ../udev.rules

-- /sys/:
/sys/block/hda/dev
/sys/block/hda/hda1/dev
/sys/block/hda/hda2/dev
/sys/block/hda/hda3/dev
/sys/block/hda/hda4/dev
/sys/block/hdc/dev
/sys/block/pktcdvd0/dev
/sys/block/ram0/dev
/sys/block/ram1/dev
/sys/block/ram10/dev
/sys/block/ram11/dev
/sys/block/ram12/dev
/sys/block/ram13/dev
/sys/block/ram14/dev
/sys/block/ram15/dev
/sys/block/ram2/dev
/sys/block/ram3/dev
/sys/block/ram4/dev
/sys/block/ram5/dev
/sys/block/ram6/dev
/sys/block/ram7/dev
/sys/block/ram8/dev
/sys/block/ram9/dev
/sys/block/sda/dev
/sys/class/cpuid/cpu0/dev
/sys/class/drm/card0/dev
/sys/class/input/event0/dev
/sys/class/input/event1/dev
/sys/class/input/event2/dev
/sys/class/input/event3/dev
/sys/class/input/mice/dev
/sys/class/input/mouse0/dev
/sys/class/input/mouse1/dev
/sys/class/misc/acerhk/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/microcode/dev
/sys/class/misc/pktcdvd/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/msr/msr0/dev
/sys/class/printer/lp0/dev
/sys/class/sound/adsp/dev
/sys/class/sound/audio/dev
/sys/class/sound/audio1/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/controlC1/dev
/sys/class/sound/dsp/dev
/sys/class/sound/dsp1/dev
/sys/class/sound/mixer/dev
/sys/class/sound/mixer1/dev
/sys/class/sound/pcmC0D0c/dev
/sys/class/sound/pcmC0D0p/dev
/sys/class/sound/pcmC0D1c/dev
/sys/class/sound/pcmC1D0c/dev
/sys/class/sound/pcmC1D0p/dev
/sys/class/sound/seq/dev
/sys/class/sound/sequencer/dev
/sys/class/sound/sequencer2/dev
/sys/class/sound/timer/dev

-- Kernel configuration:
isapnp_init not present.

-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-rc2-mm4
Locale: LANGÞ_AT@euro, LC_CTYPEÞ_AT@euro (charmap=ISO-8859-15)

Versions of packages udev depends on:

ii  debconf [debconf-2.0]    1.4.41          Debian configuration management sy
ii  hotplug                  0.0.20040329-16 Linux Hotplug Scripts
ii  initscripts              2.86-5          Standard scripts needed for bootin
ii  libc6                    2.3.2.ds1-19    GNU C Library: Shared libraries an
ii  makedev                  2.3.1-75        Creates device files in /dev

-- debconf information:
udev/devfs-warning:
* udev/reboot-warning:

----- End forwarded message -----

Signature · 13 lines
ciao, |
Marco | [9845 cuu6ZqZtEJgcg]


-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw

Re: Bug#285945: udev: the option `all_partitions' to NAME does not

Quoted 16 lines · Marco d'Itri

I think that the request is reasonable, but I'm not sure about how this should be solved.
Do we need a SYMLINK{all_partitions}?

----- Forwarded message from Norbert Preining <[email protected]> -----

Subject: Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK
Reply-To: Norbert Preining <[email protected]>, [email protected]
From: Norbert Preining <[email protected]>

Package: udev
Version: 0.048-2
Severity: normal

Hi!

Quoted 7 lines

I have entries in my local rules file:
SYSFS{model}="Flash R/W", NAME{all_partitions}="%k", SYMLINK="sdcard%n" which create the normal dev entries (sda and sdb), but as they are removeable devices, I added

	{all_partitions}

thus I get device nodes for sda1 - sda15 and sda, even when there is no SD Card in the drive at boot time (built in sd reader).

Just specify the name you want to use in the fstab in the NAME key and not in the SYMLINK and it should work:

SYSFS{model}="Flash R/W", NAME{all_partitions}="sdcard", SYMLINK="%k"

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://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Marco d'Itri

Hi Kay, hi Marco, hi hotplug list!

Quoted 4 lines · Kay Sievers
Quoted 3 lines · Marco d'Itri

I think that the request is reasonable, but I'm not sure about how this should be solved.
Do we need a SYMLINK{all_partitions}?

I would suggest that in case the NAME has a all_partitions, it is transfered to the SYMLINK without a need to explicitely write it. This seems to be the best logic.

Quoted 8 lines
Quoted 7 lines

I have entries in my local rules file:
SYSFS{model}="Flash R/W", NAME{all_partitions}="%k", SYMLINK="sdcard%n" which create the normal dev entries (sda and sdb), but as they are removeable devices, I added

	{all_partitions}

thus I get device nodes for sda1 - sda15 and sda, even when there is no SD Card in the drive at boot time (built in sd reader).

Quoted 4 lines

Just specify the name you want to use in the fstab in the NAME key and not in the SYMLINK and it should work:

SYSFS{model}="Flash R/W", NAME{all_partitions}="sdcard", SYMLINK="%k"

Well, this is a solution, but for sure not the optimal one.

Best wishes

Norbert

-------------------------------------------------------------------------------
Norbert Preining <preining AT logic DOT at> Technische Universität Wien
sip:[email protected] +43 (0) 59966-690018
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
ALDCLUNE (n.)
One who collects ten-year-old telephone directories.
--- 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://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel