Skip to contentSkip to conversation

pktcdvd major contradicts <linux/Documentation/devices.txt>

DISCUSSION Herbert Rosmanith 2 participants 3 messages May 20, 2006

lore
Share & tools
lore
#0 lore raw

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 module

but:

(2)

# modprobe pktcdvd
# grep pktcdvd /proc/devices 
254 pktcdvd

so, in contrast to the documentation, pktcdvd gets a dynamic major.

kind regards,
h.rosmanith

#1 lore raw
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 module

but:

Quoted 7 lines

(2)

# modprobe pktcdvd
# grep pktcdvd /proc/devices 
254 pktcdvd

so, in contrast to the documentation, pktcdvd gets a dynamic major.

Fixed is in -git since Mon May 15 09:44:40 2006 -0700.

#2 lore raw
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