Mailing List Archive

2.2-final: Problem with ATAPI CDROM directory listings
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.)
BUG Report Below:
[1.] One line summary of the problem:
Corruption of retrieval of large directory listing from CD-ROM drive. (Large
directory example being RPMS directory on a RH 5.2 CD.)
[2.] Full description of the problem/report:
When 'ls'ing or using 'mc' to view a directory, output is truncated and
corrupted and syslog out is as follows:
Jan 25 17:52:26 leo kernel: VFS: Disk change detected on device ide1(22,0)
Jan 25 17:52:26 leo kernel: ISO 9660 Extensions: RRIP_1991A
Jan 25 17:52:55 leo kernel: next_offset (806) > bufsize (800)
[3.] Keywords (i.e., modules, networking, kernel):
[4.] Kernel version (from /proc/version):
Linux version 2.2.0-final (root@leo.zoo.co.za) (gcc version 2.7.2.3) #6 Thu
Jan 21 20:44:54 SAST 1999
[5.] Output of Oops.. message (if applicable) with symbolic information
resolved (see Documentation/oops-tracing.txt)
Not Applicable
[6.] A small shell script or example program which triggers the
problem (if possible)
Not Applicable
[7.] Environment
[7.1.] Software (add the output of the ver_linux script here)
Linux leo.zoo.co.za 2.2.0-final #6 Thu Jan 21 20:44:54 SAST 1999 i586
unknown
Kernel modules found
Gnu C 2.7.2.3
Binutils 2.9.1.0.15
Linux C Library 2.0.7
Dynamic linker ldd (GNU libc) 2.0.7
Linux C++ Library 2.8.0
Procps 1.2.9
Mount 2.8a
Net-tools (1998-12-05)
Kbd 0.96
Sh-utils 1.16
[7.2.] Processor information (from /proc/cpuinfo):
processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 4
model name : Pentium MMX
stepping : 3
cpu MHz : 200.457059
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 mmx
bogomips : 399.77
[7.3.] Module information (from /proc/modules):
opl3 10264 0
sb 30764 0
uart401 5628 0 [sb]
sound 55156 0 [opl3 sb uart401]
soundcore 2192 6 [sb sound]
[7.4.] SCSI information (from /proc/scsi/scsi)
Not Applicable
[7.5.] Other information that might be relevant to the problem
(please look in /proc and include all information that you
think to be relevant):
/proc/ide/hdc/model:
SAMSUNG SCR-2430
/proc/ide/hdc/driver:
ide-cdrom version 4.52
/proc/ide/hdc/settings:
name value min max mode
---- ----- --- --- ----
breada_readahead 4 0 127 rw
dsc_overlap 0 0 1 rw
file_readahead 72 0 2097151 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
max_kb_per_request 122 1 127 rw
nice1 1 0 1 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
unmaskirq 0 0 1 rw
using_dma 1 0 1 rw
[X.] Other notes, patches, fixes, workarounds:
Increase Bufsize?
Regards
Daniel
-
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/
Re: 2.2-final: Problem with ATAPI CDROM directory listings [ In reply to ]
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/
RE: 2.2-final: Problem with ATAPI CDROM directory listings [ In reply to ]
Hi there
Works great! However this is logged to syslog now:
Jan 25 21:04:22 leo kernel: hdc: status error: status=0x58 { DriveReady
SeekComplete DataRequest }
Jan 25 21:04:22 leo kernel: hdc: DMA disabled
Jan 25 21:04:22 leo kernel: hdc: drive not ready for command
Jan 25 21:04:22 leo kernel: hdc: ATAPI reset complete
Cheers
Daniel
> > 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
[ snip ]
-
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/