Re: DVD "backup" trouble
Hi,
Reco wrote:
> sr0 11:0 1 3.9G 0 rom
> pktcdvd0 252:0 1 1.2G 0 disk
The pktcdvd driver is of help only with operating a rw-filesystem on
formatted CD-RW (miserably slow) or formatted DVD-RW (annoyingly slow).
> Media summary: 1 session, 2042848 data blocks, 3990m data, 0 free
> sr0 11:0 1 2G 0 rom
> I feel cheated :(
I am wondering how this misperception can happen.
Probably the info comes from function blkdev_get_size() in
https://sources.debian.org/src/util-linux/2.34-0.1/lib/blkdev.c/?hl=102#L83
which looks like
ioctl(fd, BLKGETSIZE64, bytes)
is the call which does the trick.
(Cute:
https://sources.debian.org/src/util-linux/2.34-0.1/libblkid/src/probe.c/?hl=815#L815
provides a preventive workaround for the TAO CD Read-Ahead bug. Such a
thing should sit in the kernel.
)
Have a nice day :)
Thomas
Reply to: