Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2003 23:16:23 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        "raoul.megelas" <raoul.megelas@libertysurf.fr>
Cc:        freebsd-current@freebsd.org
Subject:   Re: usb flashkey disk copy error
Message-ID:  <20030908061623.GJ39788@funkthat.com>
In-Reply-To: <20030907093323.GA780@libertysurf.fr>
References:  <20030907093323.GA780@libertysurf.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030908061623.GJ39788>