Re: 2.2-final: Problem with ATAPI CDROM directory listings

Jens Axboe (axboe@image.dk)
Mon, 25 Jan 1999 19:25:35 +0000


Daniel Chalef wrote:
>
> Hello There
>
> I have a problem with corrupted CDROM directory listings using 2.2-final and
> large directories (for example the RPMS directory on a RH 5.2 CD.)
[snip]
> /proc/ide/hdc/model:
> SAMSUNG SCR-2430

Does this fix your problem?

--- virgin/drivers/block/ide-cd.c Thu Jan 21 23:55:07 1999
+++ linux/drivers/block/ide-cd.c Mon Jan 25 19:23:19 1999
@@ -2984,7 +2984,7 @@
drive needs this. */
CDROM_CONFIG_FLAGS (drive)->limit_nframes = 0;
if (drive->id != NULL)
- if (strcmp (drive->id->model, "SAMSUNG CD-ROM SCR-2432")
== 0)
+ if (strstr (drive->id->model, "SAMSUNG CD-ROM SCR-243")
== 0)
CDROM_CONFIG_FLAGS (drive)->limit_nframes = 1;

#if ! STANDARD_ATAPI

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
* "The only thing that interferes with my
*  learning is my education." -- A. Einstein

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/