linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Drake <dsd@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Rename /dev/pktcdvd to avoid userspace conflict
Date: Fri, 07 Jan 2005 14:30:02 +0000	[thread overview]
Message-ID: <41DEACE3.1010908@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

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

[-- Attachment #2: rename-pktcdvd.patch --]
[-- Type: text/x-patch, Size: 567 bytes --]

diff -urNp udev-050/etc/udev/gentoo/udev.rules udev-dsd/etc/udev/gentoo/udev.rules
--- udev-050/etc/udev/gentoo/udev.rules	2004-12-18 05:53:07.000000000 +0000
+++ udev-dsd/etc/udev/gentoo/udev.rules	2005-01-07 15:33:43.476238128 +0000
@@ -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"

             reply	other threads:[~2005-01-07 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-07 14:30 Daniel Drake [this message]
2005-01-07 14:54 ` [PATCH] Rename /dev/pktcdvd to avoid userspace conflict Marco d'Itri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41DEACE3.1010908@gentoo.org \
    --to=dsd@gentoo.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).