Skip to contentSkip to conversation

Rename /dev/pktcdvd to avoid userspace conflict

PATCH In review Daniel Drake 2 participants 2 messages Jan 7, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rename /dev/pktcdvd to avoid userspace conflict

Hi,

By default, udev creates the control node for pktcdvd at /dev/pktcdvd, whereas with devfs it gets created at /dev/pktcdvd/control.

Also, the userspace tool looks for the control node at /dev/pktcdvd/control, and isn't too happy when /dev/pktcdvd is there but not a directory.

This patch updates the rules file to take account of this. I only updated the Gentoo rules, should others be updated too?

Daniel

etc/udev/gentoo/udev.rules +4 -0
diff -urNp udev-050/etc/udev/gentoo/udev.rules udev-dsd/etc/udev/gentoo/udev.rules
@@ -94,6 +94,10 @@ KERNEL="tap*",		NAME="netlink/%k"
 # network devices
 KERNEL="tun",		NAME="net/%k"
 
+# packet writing
+# avoids conflict with userspace
+KERNEL="pktcdvd", NAME="%k/control"
+
 # pty devices
 KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
 KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k"
#1 lore raw
Quoted 2 lines · Daniel Drake

This patch updates the rules file to take account of this. I only updated the Gentoo rules, should others be updated too?

FWIW, the debian udev package uses structured names for the pktcdvd devices in both the devfs-like and traditional naming schemes.

Signature · 2 lines
ciao,
Marco