From owner-freebsd-current@FreeBSD.ORG Fri Sep 12 21:29:43 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FCC116A4BF for ; Fri, 12 Sep 2003 21:29:43 -0700 (PDT) Received: from smtp.fud.org.nz (203-79-110-29.cable.paradise.net.nz [203.79.110.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68CC243F85 for ; Fri, 12 Sep 2003 21:29:41 -0700 (PDT) (envelope-from andy@fud.org.nz) Received: from localhost (localhost [127.0.0.1]) by smtp.fud.org.nz (Postfix) with ESMTP id C84A35C5C; Sat, 13 Sep 2003 16:29:39 +1200 (NZST) Received: from smtp.fud.org.nz ([127.0.0.1]) by localhost (grace.fud.org.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 65481-05; Sat, 13 Sep 2003 16:29:39 +1200 (NZST) Received: from fud.org.nz (sambo.fud.org.nz [192.168.10.100]) by smtp.fud.org.nz (Postfix) with ESMTP id EDEC65C39; Sat, 13 Sep 2003 16:29:38 +1200 (NZST) Message-ID: <3F629E00.7010708@fud.org.nz> Date: Sat, 13 Sep 2003 16:33:04 +1200 From: Andrew Thompson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20030910 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <20030806213504.S74720@root.org> <03Aug8.140932nzst.119071@homer.fire.org.nz> <20030807200629.G77081@root.org> <1060346467.33258.3.camel@localhost> <20030808084040.C78146@root.org> <1060413953.33258.18.camel@localhost> <20030822094621.T4440@root.org> In-Reply-To: <20030822094621.T4440@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at fud.org.nz cc: current@freebsd.org Subject: Re: USB da(4) quirks deprecated X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 13 Sep 2003 04:29:43 -0000 Nate Lawson wrote: >>dmesg: >>umass0: SigmaTel, Inc. USBMSC Audio Player, rev 1.10/0.01, addr 3 >>umass0: Get Max Lun not supported (IOERROR) >>Enabling quirks for device >>da0 at umass-sim0 bus 0 target 0 lun 0 >>da0: Removable Direct Access SCSI-4 device >>da0: 1.000MB/s transfers >>da0: 125MB (256001 512 byte sectors: 64H 32S/T 125C) >> >> >The NO_PREVENT support has been added. Does this work for you? > { > {T_DIRECT, SIP_MEDIA_REMOVABLE, "SigmaTel", "MSCN", "*"}, > /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT > }, > > > Yes, it does work :) I have just got around to trying this pen-drive again and have been trying tracking down data corruptions. If I mount the drive, write a file, umount/mount again the file is different. Using cmp I have found that there are consistent blocks of nulls in the written file where data should be. The block is always 0xfff bytes long and starts at 0x3000. I have tried many files and the offsets are always the same. All the other data in the file is correct and at the right location. 0x3000 -> 0x3fff 0x7000 -> 0x7fff 0xb000 -> 0xbfff 0xf000 -> 0xffff 0x13000 -> 0x13fff ... and so on until the end of the file ... Any suggestions? Andy