From owner-freebsd-current@FreeBSD.ORG Wed Nov 14 03:30:34 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 607CE16A418 for ; Wed, 14 Nov 2007 03:30:34 +0000 (UTC) (envelope-from rainer.alves@gmail.com) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.187]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE7F13C45B for ; Wed, 14 Nov 2007 03:30:33 +0000 (UTC) (envelope-from rainer.alves@gmail.com) Received: by rn-out-0102.google.com with SMTP id s42so38604rnb for ; Tue, 13 Nov 2007 19:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=GzjGTLMF7MWH1lpctnScoc2a4Vk1hpHYQBPlZSsYC88=; b=RB8hALeRkp2mPIM9bSx7i9dBGRuRCb7Iqwzml+SZYPr+LTgUGaBuZdzCfpCMKjlNsumw7mrftXwJq1ZDyZIeEZWhss5Ux8TLuzN46C+F5uHeIzHCPm5V0m45qr4RLOwQp5O6osa8M15duczONxakvxAfbLGzAPWbgBrYJnrVVgs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=G+wv4wVtDg+9pSjNymGgtPjtjhavdgAt6KFFzQV8WYzle4qHPc6mxBvMtrJ3BkE6L0UZ9hbiVgigWq4VW3yrlkxyEUtz7Ux8/5t2GjE5gzWrHVQApFnAJFN6MbHSBYQP+tqZTxAi/A9n1IdYRMmNiGrFPNXLqhWWM2Fdfu4gB9U= Received: by 10.70.56.10 with SMTP id e10mr2359335wxa.1195011026893; Tue, 13 Nov 2007 19:30:26 -0800 (PST) Received: from bsd.powered.net ( [200.181.68.107]) by mx.google.com with ESMTPS id h18sm340875wxd.2007.11.13.19.30.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Nov 2007 19:30:25 -0800 (PST) Message-ID: <473A6BB8.9030306@gmail.com> Date: Wed, 14 Nov 2007 01:30:00 -0200 From: Rainer Alves User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.6) Gecko/20071102 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: olli@lurza.secnetix.de References: <200711131736.lADHavwb071383@lurza.secnetix.de> In-Reply-To: <200711131736.lADHavwb071383@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.ORG, ricardo.areis@gmail.com, Bruce Evans , varga.michal@gmail.com, tim1timau@yahoo.com Subject: Re: [USB/MSDOSFS] Possible File System Corrupted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 03:30:34 -0000 On 11/13/2007 15:36, Oliver Fromme wrote: > Tim Clewlow wrote: > > Michal Varga wrote: > > > Rainer Alves wrote: > > > > I'm having the exact same problem. > > > > Ever since I've switched from RELENG_6 to RELENG_7 I'm still able to > > > > mount my SonyEricsson W810 phone, but whatever is copied there gets > > > > corrupted. > > > > I first noticed this yesterday when copying a new batch os MP3s to its 4 > > > > GB memory stick. > > > > > > "Me too" - I see this with USB2.0 support/controller enabled, tested on > > > two nforce5 and amd690 boards. Random (but pretty heavy) corruptions > > > with data transferred to and from digital camera and mp3 player (both > > > acting as common "usb flash disks"). Disabling USB2.0 seems to fix it > > > AND also no board without USB2.0 controller exhibits this here (I just > > > did a few quick tests, and nothing so far). Possibly some EHCI-specific > > > bug? > > I remember there was an msdosfs corruption problem reported > a few months ago. It could be worked around by disabling > read/write clustering when mounting the file systems (see > the options in the mount(8) manpage). > > I don't think this issue is related, but it might still be > worth a try. > Unfortunately the problem isn't solved when I disable clustering (-o noclusterr,noclusterw), files are still getting corrupted. Btw, it isn't possible to disable clustering in RELENG_7 unless this patch is applied: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/fs/msdosfs/msdosfs_vfsops.c.diff?r1=1.176;r2=1.177 Let me know if I can do further testing, so far all I can say is that md5 checksums don't match before/after the copy process. umass0: on uhub0 umass1: on uhub0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 26MB (54008 512 byte sectors: 64H 32S/T 26C) da1 at umass-sim1 bus 1 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 1.000MB/s transfers da1: 3905MB (7999298 512 byte sectors: 255H 63S/T 497C) GEOM_LABEL: Label for provider da0s1 is msdosfs/PHONE. GEOM_LABEL: Label for provider da1s1 is msdosfs/PHONE CARD. [rainer@bsd ~]$ sudo usbdevs -v | grep Sony port 6 addr 3: full speed, power 500 mA, config 1, Sony Ericsson W810(0xe042), Sony Ericsson(0x0fce), rev 0.00 [rainer@bsd ~]$ sudo camcontrol devlist | grep SE at scbus4 target 0 lun 0 (da0,pass1) at scbus5 target 0 lun 0 (da1,pass2)