Re: Proposal: Use hi-res clock for file timestamps

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick J. LoPresti
Date: Wednesday, August 18, 2010 - 7:46 am

On Tue, Aug 17, 2010 at 10:53 PM, Neil Brown <neilb@suse.de> wrote:

I think nfsd can simply update current_nfsd_time whenever the mtime it
reads from an inode is >= current_nfsd_time.  (The invariant you need
to maintain is that whenever nfsd reads an mtime, any timestamps
produced after that have a later time.  So just code it that way
directly.)


I believe this works.


But I do not believe this works.

1) Modify file A
2) Modify file B
3) File A experiences one of those "occasional forward jumps in mtime"
(inode evicted + read back within 1 second)
4) mtimes on A and B are now out of order -- very bad

As Bruce mentioned, ext3 is a lost cause.

Regardless of any of this, however, the first step is to provide a
mount option to select the timestamp algorithm...  Because it is still
absurd that I cannot have accurate timestamps on my files here in the
21st century.

Once that is done, the rest is just providing the alternative
implementations and choosing defaults.

 - Pat
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Fri Aug 13, 11:25 am)
Re: Proposal: Use hi-res clock for file timestamps, john stultz, (Fri Aug 13, 11:45 am)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Fri Aug 13, 11:57 am)
Re: Proposal: Use hi-res clock for file timestamps, john stultz, (Fri Aug 13, 12:09 pm)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Fri Aug 13, 1:53 pm)
Re: Proposal: Use hi-res clock for file timestamps, Bret Towe, (Sat Aug 14, 6:50 pm)
Re: Proposal: Use hi-res clock for file timestamps, Andi Kleen, (Tue Aug 17, 7:54 am)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Tue Aug 17, 10:41 am)
Re: Proposal: Use hi-res clock for file timestamps, Andi Kleen, (Tue Aug 17, 11:29 am)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Tue Aug 17, 11:50 am)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Tue Aug 17, 12:04 pm)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Tue Aug 17, 12:18 pm)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Tue Aug 17, 12:29 pm)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Tue Aug 17, 12:34 pm)
Re: Proposal: Use hi-res clock for file timestamps, Alan Cox, (Tue Aug 17, 12:39 pm)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Tue Aug 17, 12:43 pm)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Tue Aug 17, 12:45 pm)
Re: Proposal: Use hi-res clock for file timestamps, Alan Cox, (Tue Aug 17, 12:52 pm)
Re: Proposal: Use hi-res clock for file timestamps, Alan Cox, (Tue Aug 17, 12:54 pm)
Re: Proposal: Use hi-res clock for file timestamps, Neil Brown, (Tue Aug 17, 10:53 pm)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Wed Aug 18, 7:46 am)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Wed Aug 18, 10:32 am)
Re: Proposal: Use hi-res clock for file timestamps, Chuck Lever, (Wed Aug 18, 11:15 am)
Re: Proposal: Use hi-res clock for file timestamps, David Woodhouse, (Wed Aug 18, 11:20 am)
Re: Proposal: Use hi-res clock for file timestamps, Patrick J. LoPresti, (Wed Aug 18, 11:32 am)
Re: Proposal: Use hi-res clock for file timestamps, Andi Kleen, (Wed Aug 18, 11:53 am)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Wed Aug 18, 11:54 am)
Re: Proposal: Use hi-res clock for file timestamps, Andi Kleen, (Wed Aug 18, 12:25 pm)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Wed Aug 18, 12:30 pm)
Re: Proposal: Use hi-res clock for file timestamps, Neil Brown, (Wed Aug 18, 4:41 pm)
Re: Proposal: Use hi-res clock for file timestamps, Neil Brown, (Wed Aug 18, 4:47 pm)
Re: Proposal: Use hi-res clock for file timestamps, Neil Brown, (Wed Aug 18, 5:52 pm)
Re: Proposal: Use hi-res clock for file timestamps, john stultz, (Wed Aug 18, 6:41 pm)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Wed Aug 18, 7:08 pm)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Wed Aug 18, 7:31 pm)
Re: Proposal: Use hi-res clock for file timestamps, Neil Brown, (Wed Aug 18, 7:44 pm)
Re: Proposal: Use hi-res clock for file timestamps, john stultz, (Wed Aug 18, 8:17 pm)
Re: Proposal: Use hi-res clock for file timestamps, J. Bruce Fields, (Thu Aug 19, 3:46 pm)