linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Benjamin Coddington <bcodding@redhat.com>
Cc: Lukas Czerner <lczerner@redhat.com>,
	tytso@mit.edu, adilger.kernel@dilger.ca,
	linux-ext4@vger.kernel.org,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: should we make "-o iversion" the default on ext4 ?
Date: Wed, 20 Jul 2022 12:46:01 -0400	[thread overview]
Message-ID: <ee6a9606c17bd8952504ac4502ccfd46bcfb4343.camel@kernel.org> (raw)
In-Reply-To: <7F6417C7-1261-4C98-96B1-CB15744C04C1@redhat.com>

On Wed, 2022-07-20 at 12:29 -0400, Benjamin Coddington wrote:
> On 20 Jul 2022, at 12:15, Jeff Layton wrote:
> 
> > On Wed, 2022-07-20 at 11:56 -0400, Benjamin Coddington wrote:
> > > On 20 Jul 2022, at 10:38, Jeff Layton wrote:
> > > > On Wed, 2022-07-20 at 16:15 +0200, Lukas Czerner wrote:
> > > > > 
> > > > > Is there a different way I am not seeing?
> > > > > 
> > > > 
> > > > Right, implementing this is the difficult bit actually since this uses a
> > > > MS_* flag. If we do make this the default, we'd definitely want to
> > > > continue allowing "-o noiversion" to disable it.
> > > > 
> > > > Could we just reverse the default in libmount? It might cause this to
> > > > suddenly be enabled in some deployments, but in most cases, people
> > > > wouldn't even notice and they could still specify -o noiversion to turn
> > > > it off.
> > > > 
> > > > Another idea would be to introduce new mount options for this, but
> > > > that's kind of nasty from a UI standpoint.
> > > 
> > > Is it safe to set SB_I_VERSION at export time?  If so, export_operations
> > > could grow an ->enable_iversion().
> > > 
> > 
> > That sounds like it might be problematic.
> > 
> > Consider the case where a NFSv4 client has cached file data and the
> > change attribute for the file. Server then reboots, but before the
> > export happens a local user makes a change to the file and it doesn't
> > update the i_version.
> 
> Nfsd currently uses both ctime and i_version if its available, I'd expect
> that eliminates this case.
> 

Good point, that probably would. Still, I'd rather we just enable this
wholesale if we can get away with it. There's still some interest in
exposing i_version to userland via statx or the like, so I'd rather not
assume that only nfsd will care about it.
-- 
Jeff Layton <jlayton@kernel.org>

  reply	other threads:[~2022-07-20 16:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-19 13:51 should we make "-o iversion" the default on ext4 ? Jeff Layton
2022-07-20 14:15 ` Lukas Czerner
2022-07-20 14:38   ` Jeff Layton
2022-07-20 15:22     ` Lukas Czerner
2022-07-20 16:42       ` Jeff Layton
2022-07-21 14:06         ` Lukas Czerner
2022-07-21 17:03           ` Jeff Layton
2022-07-20 15:56     ` Benjamin Coddington
2022-07-20 16:06       ` Christoph Hellwig
2022-07-20 16:15       ` Jeff Layton
2022-07-20 16:29         ` Benjamin Coddington
2022-07-20 16:46           ` Jeff Layton [this message]
2022-07-21 22:32 ` Dave Chinner
2022-07-25 16:22   ` Jeff Layton

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=ee6a9606c17bd8952504ac4502ccfd46bcfb4343.camel@kernel.org \
    --to=jlayton@kernel.org \
    --cc=adilger.kernel@dilger.ca \
    --cc=bcodding@redhat.com \
    --cc=lczerner@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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).