linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Jan Kara <jack@suse.cz>,
	Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: recursive mtime patches
Date: Wed, 13 Apr 2011 23:39:37 +0200	[thread overview]
Message-ID: <20110413213937.GB4648@quack.suse.cz> (raw)
In-Reply-To: <BANLkTinO7G1YxZCP1-PXG5Nvyas=QdAunQ@mail.gmail.com>

On Wed 13-04-11 21:16:40, Amir Goldstein wrote:
> On Tue, Apr 12, 2011 at 5:48 PM, Jan Kara <jack@suse.cz> wrote:
> > modification stamps have possibly larger race windows but I haven't really
> > tried how much (I just know that even mtime races are not that hard to
> > trigger if you try). So it really depends on how big reliability do you
> > expect and I personally don't find much value in just rescanning and
> > checking for mtime after a crash. Reading all the data and doing checksum
> > certainly has more value but at a high cost.
> >
> 
> What do you thing about the approach to store recursively modified dir inodes in
> a journal "modified inode descriptor block" and update the recursive mtime of
> those dirs on journal recovery?
  The trouble is you don't know the number of directories that may need
to have timestamp updated - you find that out only as you travel upwards.
So it's hard to reserve any fixed space for this.

> I would also consider to use a mount option rec_mtime and then just
> store recursive
> mtime in the directory's inode mtime instead of an extended attribute.
> That doesn't break any contract with user space, it's just a re-interpretation
> of the dir modification notion.
  It breaks POSIX specification - POSIX pretty much specifies when mtime is
supposed to be changed - so I'm not sure we really want to do that... 

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

  reply	other threads:[~2011-04-13 21:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 13:37 recursive mtime patches Amir Goldstein
2011-04-12 15:48 ` Jan Kara
2011-04-13 19:16   ` Amir Goldstein
2011-04-13 21:39     ` Jan Kara [this message]
2011-04-14  7:12       ` Amir Goldstein
2011-04-14  9:21         ` Jan Kara
2011-04-14  9:36           ` Amir Goldstein
2011-04-14  9:49             ` Jan Kara
2011-04-14 10:06               ` Amir Goldstein

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=20110413213937.GB4648@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=amir73il@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    /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).