linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Andi Kleen <andi@firstfloor.org>, Matt Mackall <mpm@selenic.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Nanosecond fs timestamp support: sad
Date: Sat, 23 Jul 2011 10:07:50 +1000	[thread overview]
Message-ID: <20110723100750.12e1a2a1@notabene.brown> (raw)
In-Reply-To: <20110722234921.GE10749@fieldses.org>

On Fri, 22 Jul 2011 19:49:21 -0400 "J. Bruce Fields" <bfields@fieldses.org>
wrote:

> On Fri, Jul 22, 2011 at 07:06:12PM -0400, J. Bruce Fields wrote:
> > On Sat, Jul 23, 2011 at 08:59:15AM +1000, NeilBrown wrote:
> > > But does anyone apart from NFSv4 actually *want* i_version as opposed to the
> > > more-generally-useful precise timestamps?
> > 
> > It *seems* like a generally useful idea, but I don't know of any other
> > users.
> 
> (Out of curiosity: what actually *needs* real timestamps?:
> 	- They're generally useful to people, of course; ("what did I
> 	  change last tuesday?")

In the same vein they are useful for archiving.  "what has changed since I
last started an archive?"

NFSv3 caching obviously uses them too.

> 	- Make uses them, though in theory perhaps it could do the same
> 	  job by caching records like "object X was built from
> 	  versions a, b, and c of objects A, B, and C respectively".

In theory....

> 
> But a lot of uses are probably just to answer the question "did this
> file change since the last time I looked at it"?

I think everything could fall in two one of two categories.
 a/ did this file change since the last time I looked at it?
 b/ did this file change since the last time that file changed?

The former can be achieved with versions or timestamps.
The latter requires globally coherent high precision timestamps... or
something like dependency tracking which would probably be even more
expensive and - as you say - non-standard.

NeilBrown


> 
> Of course, however theoretically useful, there's always the argument
> that linux-specific interfaces are unlikely to be used by anyone except
> Lennart Poettering.)
> 
> --b.

  reply	other threads:[~2011-07-23  0:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-21 18:07 Nanosecond fs timestamp support: sad Matt Mackall
2011-07-22  6:01 ` Andi Kleen
2011-07-22  6:33   ` NeilBrown
2011-07-22 19:34     ` Matt Mackall
2011-07-22 20:59       ` Andi Kleen
2011-07-22 21:11         ` Matt Mackall
2011-07-22 21:47           ` Andi Kleen
2011-07-22 22:10             ` J. Bruce Fields
2011-07-22 22:31               ` J. Bruce Fields
2011-07-22 22:59                 ` NeilBrown
2011-07-22 23:06                   ` J. Bruce Fields
2011-07-22 23:49                     ` J. Bruce Fields
2011-07-23  0:07                       ` NeilBrown [this message]
2011-07-23  0:07                   ` Matt Mackall
2011-07-23  1:38                     ` J. Bruce Fields
2011-07-23  2:10                       ` Trond Myklebust
2011-07-24  1:56                       ` Andi Kleen
2011-07-29 19:49                     ` Pavel Machek
2011-07-29 21:37                       ` Matt Mackall
2011-07-23  1:13                   ` Andreas Dilger
2011-07-25 15:09                   ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110723100750.12e1a2a1@notabene.brown \
    --to=neilb@suse.de \
    --cc=andi@firstfloor.org \
    --cc=bfields@fieldses.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).