From nobody@FreeBSD.ORG Tue May 11 17:02:28 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 7F31A1517B; Tue, 11 May 1999 17:02:15 -0700 (PDT)
Message-Id: <19990512000215.7F31A1517B@hub.freebsd.org>
Date: Tue, 11 May 1999 17:02:15 -0700 (PDT)
From: i.think@nemox.looksharp.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: msdos file corruption in -current as of 5/10/99
X-Send-Pr-Version: www-1.0

>Number:         11658
>Category:       i386
>Synopsis:       msdos file corruption in -current as of 5/10/99
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 11 17:10:00 PDT 1999
>Closed-Date:    Sun May 16 14:02:29 PDT 1999
>Last-Modified:  Sun May 16 14:03:56 PDT 1999
>Originator:     Andrew Tamm
>Release:        4.0 Current
>Organization:
>Environment:
FreeBSD descartes.TAMM 4.0-CURRENT FreeBSD 4.0-CURRENT #3: Tue May 11 15:25:38 EDT 1999     nemox@descartes.TAMM:/usr/src/sys/compile/DESCARTES  i386

>Description:
I am getting file corruption when accessing my mp3s on one of my
drives.  The drive is formatted FAT32 and is approximatly 4.5 gigs.
When I load a mp3 using mpg123,  I recieve an error similiar ( it is
different on each mp3 ) to this:



Playing MPEG stream from GENESI~1.MP3 ...
MPEG 1.0 layer III, 112 kbit/s, 44100 Hz joint-stereo
Illegal Audio-MPEG-Header 0x00000000 at offset 0x1124.
Skipped 4023 bytes in input.
mpg123: Can't rewind stream by 673 bits!
mpg123: Can't rewind stream by 528 bits!
^C
[0:05] Decoding of GENESI~1.MP3 finished.


If I use mcopy to copy the file off of the FAT32 drive and onto a FFS
formatted drive the file will play perfectly.

Playing MPEG stream from genesi~1.mp3 ...
MPEG 1.0 layer III, 112 kbit/s, 44100 Hz joint-stereo
^C
[0:03] Decoding of genesi~1.mp3 finished.

md5 returns different checksums on the different versions of this file.

on FAT32 partition ( using mount )
MD5 (GENESI~1.MP3) = 57fe3498d16654bd8725c7a6e88e423c

on FFS partition ( copied off of FAT32 partition with mcopy )
MD5 (genesi~1.mp3) = 49b53fee8f659c07c776006b54722ba4

Hard drive information from dmesg:

wdc0 at port 0x1f0-0x1f7 irq 14 on isa0
wdc0: unit 0 (wd0): <QUANTUM Bigfoot TX12.0AT>
wd0: 11497MB (23547888 sectors), 23361 cyls, 16 heads, 63 S/T, 512 B/S


This error was not present until I upgraded to 4.0-CURRENT from
3.1-RELEASE

I can upload the files if you would like.

If you need any more information, please email me back and tell me what
you need

I am not on the list so please include my address in replies, also.


>How-To-Repeat:
The problem is repeatable on my system and has been tested to make sure it is not an error in the mp3 file itself.
>Fix:


>Release-Note:
>Audit-Trail:

From: Chris Costello <chris@calldei.com>
To: i.think@nemox.looksharp.net
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/11658: msdos file corruption in -current as of 5/10/99
Date: Tue, 11 May 1999 19:52:25 -0500

 On Tue, May 11, 1999, i.think@nemox.looksharp.net wrote:
 > 
 > >Number:         11658
 > >Category:       i386
 > >Synopsis:       msdos file corruption in -current as of 5/10/99
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Tue May 11 17:10:00 PDT 1999
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Andrew Tamm
 > >Release:        4.0 Current
 > >Organization:
 > >Environment:
 > FreeBSD descartes.TAMM 4.0-CURRENT FreeBSD 4.0-CURRENT #3: Tue May 11 15:25:38 EDT 1999     nemox@descartes.TAMM:/usr/src/sys/compile/DESCARTES  i386
 > 
 > >Description:
 > I am getting file corruption when accessing my mp3s on one of my
 > drives.  The drive is formatted FAT32 and is approximatly 4.5 gigs.
 > When I load a mp3 using mpg123,  I recieve an error similiar ( it is
 > different on each mp3 ) to this:
 
    MS-DOS is broken.  It uses CRLF (\r\n) in its files.  mpg123
 is misinterpreting the file because it has \r\n instead of \n.
 There are no problems with the FAT support.
 
 -- 
 Chris Costello                                <chris@calldei.com>
 If at first you don't succeed, call it version 1.0
 
State-Changed-From-To: open->feedback 
State-Changed-By: dt 
State-Changed-When: Sun May 16 01:28:50 PDT 1999 
State-Changed-Why:  
Should be fixed in src/sys/vm/vnode_pager.c revision 1.110. Please confirm. 
State-Changed-From-To: feedback->closed 
State-Changed-By: dt 
State-Changed-When: Sun May 16 14:02:29 PDT 1999 
State-Changed-Why:  
Originator confirm that problem fixed. 
>Unformatted:
