pktcdvd major contradicts <linux/Documentation/devices.txt>
good evening,
(1)
# grep -B 1 pktcdvd /usr/src/linux/Documentation/devices.txt
97 block Packet writing for CD/DVD devices
0 = /dev/pktcdvd0 First packet-writing module
1 = /dev/pktcdvd1 Second packet-writing modulebut:
(2)
# modprobe pktcdvd # grep pktcdvd /proc/devices 254 pktcdvd
so, in contrast to the documentation, pktcdvd gets a dynamic major.
kind regards,
h.rosmanith
Quoted 8 lines · Herbert Rosmanith
(1)
# grep -B 1 pktcdvd /usr/src/linux/Documentation/devices.txt 97 block Packet writing for CD/DVD devices 0 = /dev/pktcdvd0 First packet-writing module 1 = /dev/pktcdvd1 Second packet-writing modulebut:
Quoted 7 lines
(2)
# modprobe pktcdvd # grep pktcdvd /proc/devices 254 pktcdvdso, in contrast to the documentation, pktcdvd gets a dynamic major.
Fixed is in -git since Mon May 15 09:44:40 2006 -0700.
Quoted 2 lines
Fixed is in -git since Mon May 15 09:44:40 2006 -0700.
aha. I'm only working with 2.6.16.16.
anyway. As I just started with the pkt-writing module, I noticed another strange behaviour (at least, it seems strange to me, but YMMV), and I wonder if this is has already been fixed in some -git or -mm prepatch or snapshot or subsubsub-release-canditate ...
<linux/Documentation/cdrom/packet-writing.txt> says:
- Setup your writer
# pktsetup dev_name /dev/hdc
Therefore, I do "pktsetup node0 /dev/hdc", which gives:
# pktsetup node0 /dev/hdc ctl open: Not a directory
strace shows that pktsetup is trying to open /dev/pktcdvd/control, which it cannot, since /dev/pktcdvd is a char device obviously created upon "modprobe pktcdvd". The char device has major 10 minor 63, which seems to be missing in devices.txt.
Once I remove the char-device, pktsetup will work and create /dev/pktcdvd/control and /dev/pktcdvd/node0. Now I try to figure out how the rest of "packet-writing.txt" works ...
kind regards,
h.rosmanith