Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76056 - udev miscreates packet write (pktcdvd) devices
Summary: udev miscreates packet write (pktcdvd) devices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 11:54 UTC by Alberto Bertogli
Modified: 2005-02-08 13:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch (udev-pktcdvd.patch,380 bytes, patch)
2005-01-18 13:08 UTC, Daniel Alonso
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Bertogli 2004-12-29 11:54:51 UTC
udev creates /dev/pktcdvd as a device itself,
but the tools (udftools) expect that device to be
/dev/pktcdvd/control.

This happens with kernel 2.6.10 and udev 050.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Daniel Alonso 2005-01-18 13:07:55 UTC
I have found a solution for this in this page: 

http://reactivated.net/patches/udev/050/rename-pktcdvd.patch

Following the instructions I have added the following to /etc/udev/rules.d/50-udev.rules:

# packet writing
# avoids conflict with userspace
KERNEL="pktcdvd", NAME="%k/control"

And it works. I have attached the patch.
Comment 2 Daniel Alonso 2005-01-18 13:08:37 UTC
Created attachment 48874 [details, diff]
proposed patch
Comment 3 Neil Darlow 2005-01-24 10:40:00 UTC
I would extend the previous modification and add one to 50-udev.permissions as follows:

1) /etc/udev/permissions.d/50-udev.permissions

   # packet devices
   pktcdvd/*:root:cdrw:0660

This follows the Gentoo standard of requiring group "cdrw" membership to perform CD-R/CD-RW/DVD-R/DVD+RW/DVD-RW writing.

2) /etc/udev/rules.d/50-udev.rules
   # packet devices
   KERNEL="pktcdvd",       NAME="pktcdvd/control"
   KERNEL="pktcdvd[0-9]*", NAME="pktcdvd/pktcdvd%n"

This relocates the pktcdvd device (c 10 61) into /dev/pktcdvd/control and packet devices into /dev/pktcdvd/pktcdvd0 .. /dev/pktcdvd/pktcdvd9.

There is a caveat to all of this. The udev install or upgrade will have to remove any existing /dev/pktcdvd device (c 10 61) that udev will have created by default so the /dev/pktcdvd directory may be created.

These are worthwhile changes because much of the published information on configuring packet writing assumes block major 97 for the packet devices. The kernel doesn't use this major number anymore (gentoo-dev-sources, at least, uses block major 254) and these changes will make it work out-of-the-box for packet writing enabled kernel configurations.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-08 13:24:19 UTC
Will be fixed in the next release.