linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev.rules woes
@ 2004-01-23 18:56 Guido Schimmels
  2004-01-26 13:59 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Guido Schimmels @ 2004-01-23 18:56 UTC (permalink / raw)
  To: linux-hotplug


To reproduce my static /dev with udev, I tried and replaced:

BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom",  
NAME="%k", SYMLINK="cdrom"

with:

BUS="ide", PROGRAM="/bin/cat /proc/ide/hdc/media", RESULT="cdrom",  
NAME="hdc", SYMLINK="cdrom"

BUS="ide", PROGRAM="/bin/cat /proc/ide/hda/media", RESULT="cdrom",  
NAME="hda", SYMLINK="cdrom"

BUS="ide", PROGRAM="/bin/cat /proc/ide/hdd/media", RESULT="cdrom",  
NAME="hdd", SYMLINK="cdrom1"

BUS="ide", PROGRAM="/bin/cat /proc/ide/hdb/media", RESULT="cdrom",  
NAME="hdb", SYMLINK="cdrom1"

Looks innocent enough, but triggers completely unexpected behaviour.
It makes __all__ IDE device nodes disappear, except /dev/hdc and /dev/ 
cdrom symlinked to it.

I installed udev only yesterday.
(udev-014 (klibc build) / kernel-2.6.1 + sysfs patches)

At least this worked:

SYSFS_name="BT848*", NAME="bttv", SYMLINK="video0"
SYSFS_name="BT878*", NAME="bttv", SYMLINK="video0"
SYSFS_name="*webcam*", NAME="webcam", SYMLINK="video1"

So I don't feel completely dumb now.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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] 2+ messages in thread

* Re: udev.rules woes
  2004-01-23 18:56 udev.rules woes Guido Schimmels
@ 2004-01-26 13:59 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2004-01-26 13:59 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Jan 23, 2004 at 08:56:37PM +0200, Guido Schimmels wrote:
> 
> To reproduce my static /dev with udev, I tried and replaced:
> 
> BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom",  
> NAME="%k", SYMLINK="cdrom"
> 
> with:
> 
> BUS="ide", PROGRAM="/bin/cat /proc/ide/hdc/media", RESULT="cdrom",  
> NAME="hdc", SYMLINK="cdrom"
> 
> Looks innocent enough, but triggers completely unexpected behaviour.
> It makes __all__ IDE device nodes disappear, except /dev/hdc and /dev/ 
> cdrom symlinked to it.

No, it doesn't look innocent, in any kind :) You ask for _every_ ide
device "if hdc is a cdrom" and if yes please give it the name 'hdc'.
The first rule matches every time.

Why not stick with the provided example? It just works.
If you want your own rules, you may add KERNEL= to the rule.

thanks,
Kay


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2004-01-26 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23 18:56 udev.rules woes Guido Schimmels
2004-01-26 13:59 ` 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).