All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@sun.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Christoph Hellwig <hch@lst.de>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	jean-noel.cordenner@bull.net, linux-fsdevel@vger.kernel.org
Subject: Re: i_version changes
Date: Wed, 13 Feb 2008 08:12:05 -0700	[thread overview]
Message-ID: <20080213151205.GC3029@webber.adilger.int> (raw)
In-Reply-To: <1202911630.11904.8.camel@heimdal.trondhjem.org>

On Feb 13, 2008  09:07 -0500, Trond Myklebust wrote:
> On Wed, 2008-02-13 at 13:52 +0100, Christoph Hellwig wrote:
> > Btw, stupid question:  the commit message for the i_version changes
> > mentions this is to work around lack of granularity for ctime updates.
> > But all modern filesystems (and I includ ext4 in that here) have 64bit
> > timestamps already, so that should be enough.  It would certainly
> > avoid all this additional code, and especially the additional space
> > used in struct inode which can hurt quite a lot.
> 
> Support for 64-bit on-disk time stamps alone does not suffice. In order
> to label all file/directory changes unambiguously, you would also need
> nanosecond timekeeping support.
> 
> An example is XFS, which has had on-disk support for 64-bit time stamps
> since forever, but is in practice limited by the Linux default 250Hz
> internal clock. We've seen plenty of examples of NFS clients missing
> updates on the resulting filesystem due to the fact that they occurred
> within 1/250 sec of each other.

The other issue which unfortunately makes ctime a non-starter is the
ability of ctime to go backward due to clock changes.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.


  reply	other threads:[~2008-02-13 15:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-10  7:30 i_version changes Christoph Hellwig
2008-02-12 20:06 ` J. Bruce Fields
2008-02-13  9:25   ` Andreas Dilger
2008-02-13 12:52   ` Christoph Hellwig
2008-02-13 14:07     ` Trond Myklebust
2008-02-13 15:12       ` Andreas Dilger [this message]
2008-02-13 20:26     ` J. Bruce Fields
2008-02-13 21:19       ` NeilBrown
2008-02-13 21:32         ` Peter Staubach
2008-02-13 22:06           ` NeilBrown
2008-02-14 14:34             ` Peter Staubach
2008-02-14  8:40           ` Jean noel Cordenner
2008-02-14 14:38             ` Peter Staubach
2008-02-15 10:31               ` Jean noel Cordenner
2008-02-13 21:36         ` J. Bruce Fields

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=20080213151205.GC3029@webber.adilger.int \
    --to=adilger@sun.com \
    --cc=bfields@fieldses.org \
    --cc=hch@lst.de \
    --cc=jean-noel.cordenner@bull.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.