From: "Theodore Ts'o" <tytso@mit.edu>
To: Andreas Dilger <adilger@dilger.ca>
Cc: linux-ext4@vger.kernel.org, Andreas Dilger <adilger@whamcloud.com>
Subject: Re: [PATCH] mke2fs: allow 64bit feature without extents
Date: Sat, 6 Apr 2019 17:52:11 -0400 [thread overview]
Message-ID: <20190406215210.GC18897@mit.edu> (raw)
In-Reply-To: <1553246667-53793-1-git-send-email-adilger@dilger.ca>
On Fri, Mar 22, 2019 at 03:24:27AM -0600, Andreas Dilger wrote:
> From: Andreas Dilger <adilger@whamcloud.com>
>
> The 64bit feature should be allowed without extents to for 32-bit
> metadata_csum checksums to be stored in the group descriptor.
> Change the extents check to check for more than 2^32 blocks instead
> of the 64bit feature flag. This also avoids warnings later if the
> metadata_csum feature is enabled on a filesystem without 64bit.
So what worries me about this change is if extents aren't enabled, and
we do an online (or off-line) resize such that we now have > 2^32
blocks, things are going to get problematic. Even if the resize
operation sets the extent feature (which I don't think it will), the
problem is if you have an existing file which is using indirect
blocks, and you try to extend the file and there is simply no blocks
under the 2^32 cutoff, what then? Some files might get ENOSPC errors
while others will work just fine.
With current versions of e2fsprogs we enable the 64-bit (and
metadata_csum) feature by default, which should avoid all of these
problems. Sure, that's not going to help older file systems --- but
this patch to mke2fs isn't going to help them, either.
It simplifies our test matrix to simply require the extents feature if
the 64-bit feature is desired. I'm not sure I see the value in
relaxing this requirement. Is there a reason why you specifically
want 64bit && !extents && metadata_csum?
- Ted
next prev parent reply other threads:[~2019-04-07 2:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-22 9:24 [PATCH] mke2fs: allow 64bit feature without extents Andreas Dilger
2019-04-06 21:52 ` Theodore Ts'o [this message]
2019-04-08 11:15 ` Andreas Dilger
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=20190406215210.GC18897@mit.edu \
--to=tytso@mit.edu \
--cc=adilger@dilger.ca \
--cc=adilger@whamcloud.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).