2006-05-20 21:22:40

by K. Ernel

[permalink] [raw]
Subject: 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 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


2006-05-20 21:36:04

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: pktcdvd major contradicts <linux/Documentation/devices.txt>

On Sat, May 20, 2006 at 11:17:29PM +0200, Herbert Rosmanith wrote:
> (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.

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

2006-05-20 22:23:27

by K. Ernel

[permalink] [raw]
Subject: Re: pktcdvd major contradicts <linux/Documentation/devices.txt>


> 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