From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 23:16:29 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 001A816A4BF for ; Sun, 7 Sep 2003 23:16:28 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E683043FA3 for ; Sun, 7 Sep 2003 23:16:26 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h886Iqbi018317; Mon, 8 Sep 2003 02:18:52 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h886GNhK066662; Sun, 7 Sep 2003 23:16:23 -0700 (PDT) (envelope-from jmg) Date: Sun, 7 Sep 2003 23:16:23 -0700 From: John-Mark Gurney To: "raoul.megelas" Message-ID: <20030908061623.GJ39788@funkthat.com> Mail-Followup-To: "raoul.megelas" , freebsd-current@freebsd.org References: <20030907093323.GA780@libertysurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907093323.GA780@libertysurf.fr> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org Subject: Re: usb flashkey disk copy error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 06:16:29 -0000 raoul.megelas wrote this message on Sun, Sep 07, 2003 at 11:33 +0200: > You have found the trick, fsync after cp works fine. > Thanks very much. > > But why the fsync is not automatically done by umount on umass? > > (note) if you need to test against flashkey i can do that if you want.) Well, we still need to figure out why an fsync fixes it. Does it still cause the corruption now after not doing an fsync? Can you alternate it a few times, doing an fsync, and then not, and seeing if it is reliable? If this is an fsync issue, then it might be else where in the subsystem that isn't flushing the buffers before umount, but that seems a bit wierd since other fs's should/would be having this problem too. Don't rejoice quite yet, there still is something to track down. Did you see my recent patch I posted? Could you try that on your system? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."