Bug 3362

Summary: IDE CD-ROM does not correctly handle the end of media for some CD-R/CD-RW
Product: IO/Storage Reporter: Alan (alan)
Component: IDEAssignee: Bartlomiej Zolnierkiewicz (bzolnier)
Status: CLOSED CODE_FIX    
Severity: normal CC: pauljohn, t8m
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.9rc1 Subsystem:
Regression: --- Bisected commit-id:

Description Alan 2004-09-08 07:08:04 UTC
According to the SCSI specification the capacity of a CD-R/RW is "undefined" to
the tune of 75 sectors (150K).  A medium error can arise as a result and
functions like

cp /dev/hdc foo.iso

don't give valid complete results (the end of the ISO may go away) due to
readahead causing errors within thr 75 sector uncertainty. This works correctly
with ide-scsi as sr.c knows how to handle the variability (it trims the volume
size and retries) but fails with ide-cd. Its one of only two things I've found
preventing ide-cd being used for all CD devices.
Comment 1 Bartlomiej Zolnierkiewicz 2005-02-08 15:44:08 UTC
*** Bug 3755 has been marked as a duplicate of this bug. ***