* Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK
@ 2004-12-16 16:13 Marco d'Itri
2004-12-16 17:57 ` Bug#285945: udev: the option `all_partitions' to NAME does not Kay Sievers
2004-12-16 22:57 ` Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK Norbert Preining
0 siblings, 2 replies; 3+ messages in thread
From: Marco d'Itri @ 2004-12-16 16:13 UTC (permalink / raw)
To: linux-hotplug
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 <preining@logic.at> -----
Subject: Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK
Reply-To: Norbert Preining <preining@logic.at>, 285945@bugs.debian.org
From: Norbert Preining <preining@logic.at>
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 -----
--
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug#285945: udev: the option `all_partitions' to NAME does not
2004-12-16 16:13 Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK Marco d'Itri
@ 2004-12-16 17:57 ` Kay Sievers
2004-12-16 22:57 ` Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK Norbert Preining
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2004-12-16 17:57 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2004-12-16 at 17:13 +0100, Marco d'Itri wrote:
> 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 <preining@logic.at> -----
>
> Subject: Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK
> Reply-To: Norbert Preining <preining@logic.at>, 285945@bugs.debian.org
> From: Norbert Preining <preining@logic.at>
>
> 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).
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK
2004-12-16 16:13 Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK Marco d'Itri
2004-12-16 17:57 ` Bug#285945: udev: the option `all_partitions' to NAME does not Kay Sievers
@ 2004-12-16 22:57 ` Norbert Preining
1 sibling, 0 replies; 3+ messages in thread
From: Norbert Preining @ 2004-12-16 22:57 UTC (permalink / raw)
To: linux-hotplug
Hi Kay, hi Marco, hi hotplug list!
On Don, 16 Dez 2004, Kay Sievers wrote:
> On Thu, 2004-12-16 at 17:13 +0100, Marco d'Itri wrote:
> > 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.
> > 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"
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:preining@at43.tuwien.ac.at +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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-16 22:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-16 16:13 Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK Marco d'Itri
2004-12-16 17:57 ` Bug#285945: udev: the option `all_partitions' to NAME does not Kay Sievers
2004-12-16 22:57 ` Bug#285945: udev: the option `all_partitions' to NAME does not transfer to SYMLINK Norbert Preining
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).