[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn completely looses file modifications due to FAT 2s time resolution (data loss!!?)

From: Ben Reser <breser_at_siaer.com>
Date: 2004-07-13 22:23:21 CEST

On Mon, Jul 12, 2004 at 11:45:30PM -0400, Greg Hudson wrote:
> On Mon, 2004-07-12 at 17:14, Ben Reser wrote:
> > To prevent this we currently sleep for 1.1 seconds at the end of such
> > operations.
>
> No, we sleep until the second counter ticks, plus .1 seconds. (This
> isn't necessarily a good idea, in hindsight. If the filesystem is
> remotely mounted, I think the server's time is used for the mod time,
> not the client's, so the tick of the client's clock isn't terribly
> interesting.)

Err yeah right. I knew that.

> > b) Drop the sleep. Make the code that checks if a file is changed not
> > accept that a file is unchanged without comparing the files when the
> > timestamp of the file is within a certain range of the current time.
>
> Meaningless. The issue is the interval between the end of the last svn
> operation and the time of the modification. The amount of time which
> has passed since then is irrelevant.

Yup.

> > c) Keep track of the oldest timestamp we write into the entries file.
>
> The oldest? Surely you mean the newest.

Yes that's what I meant.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 13 22:26:33 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.