chiark / gitweb /
cdrom_id: Fix DVD blank detection for sloppy firmware
authorJan Drzewiecki <jonie@icpnet.pl>
Mon, 30 Aug 2010 22:37:28 +0000 (00:37 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 30 Aug 2010 22:41:35 +0000 (00:41 +0200)
commit5e267ea5a36de0b2a9a8965ca93dd45bbd6b1a8b
tree2b0e508be44b29eeac81a439e6308c4fa9d523e4
parent2458db3edd8d66827b34978ff471dff8f879e9ab
cdrom_id: Fix DVD blank detection for sloppy firmware

Reportedly, many CD drive firmwares will only consider the MSB in a READ
command, thus if we request 17 blocks to be read, we'll actually only get 16 in
many cases, and thus miss out the interesting sector #17. This would lead to
falsely considering nonempty DVDs as blank.

Fetch 32 blocks now, which should work everywhere.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
extras/cdrom_id/cdrom_id.c