Hi Gregor,
On 2013-01-08 12:03, gregor herrmann wrote:
Control: tag -1 + confirmed
Control: severity -1 minor
Control: retitle -1 cdck: Documentation should mention that -t doesn't work for
audio CDs
On Mon, 07 Jan 2013 21:18:03 -0500, Filipus Klutiero wrote:
cdck fails to test audio CDs.
Ack.
I can confirm this both by trying and be reading the code.
And it seems that there's no way around it:
Ccdrom::ReadCD (starting at 414) reads the sectors starting from 0
until sectors_tot.
sectors_tot is set in Ccdrom::ReadTOC(), and if I remove the comment
there to output the sectors of an audio CD (172), I get:
sectors = -1
After trying and reading a bit further (both in cdck and in
linux/cdrom.h) I _think_ this won't work for audio CDs. I can get a
sectors variable by removing some conditions, but than I'm ending at:
% src/cdck -t
sectors = 327782
NB! For disks written with some burners cdck might
report about unreadable sectors at the end of the disk.
In such cases you can just ignore those warnings.
Reading sectors 1-327782
! unable to read sector 1, reason: Input/output error
! unable to read sector 2, reason: Input/output error
! unable to read sector 3, reason: Input/output error
[..]
So I guess this boils down to a documentation problem: -t just
doesn't and won't work for audio CDs ...
Cheers,
gregor
This is not just a documentation problem - testing audio CDs is no less
possible than testing other kinds of CDs. But adapting the documentation
and the behavior when this fails would certainly be better than nothing.
I do not understand what you wrote about ReadTOC() and sectors_tot.
Maybe provide patches showing what you tested.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org