From: Gabriel Krisman Bertazi <krisman@collabora.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: Slava Bacherikov <slava@bacher09.org>,
tytso@mit.edu, linux-ext4@vger.kernel.org
Subject: Re: [PATCH v2] tune2fs: allow disabling casefold feature
Date: Thu, 07 Jul 2022 16:16:21 -0400 [thread overview]
Message-ID: <87tu7s3ch6.fsf@collabora.com> (raw)
In-Reply-To: <Ysc5HYPXUs6rW02S@gmail.com> (Eric Biggers's message of "Thu, 7 Jul 2022 19:50:53 +0000")
Eric Biggers <ebiggers@kernel.org> writes:
> On Thu, Jul 07, 2022 at 10:04:56PM +0300, Slava Bacherikov wrote:
>> + if (FEATURE_OFF(E2P_FEATURE_INCOMPAT, EXT4_FEATURE_INCOMPAT_CASEFOLD)) {
>> + if (mount_flags & EXT2_MF_MOUNTED) {
>> + fputs(_("The casefold feature may only be disabled when "
>> + "the filesystem is unmounted.\n"), stderr);
>> + return 1;
>> + }
>> + if (has_casefold_inode(fs)) {
>> + fputs(_("The casefold feature couldn't be disabled when "
>> + "there are inodes with +F flag.\n"), stderr);
>> + return 1;
>> + }
>> + enabling_casefold = 0;
>
> Likewise, "couldn't" => "can't".
>
> Also, what are the semantics of disabling casefold, exactly? Do the encoding
> and encoding flags fields in the superblock also get cleared?
The kernel is able to ignore the non-zero encoding field if the feature
is not set, but we definitely don't want to rely on that. The patch
should explicitly zero both s_encoding and s_encoding_flags.
--
Gabriel Krisman Bertazi
next prev parent reply other threads:[~2022-07-07 20:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 16:54 [PATCH] tune2fs: allow disabling casefold feature Slava Bacherikov
2022-07-07 18:30 ` Eric Biggers
2022-07-07 19:04 ` [PATCH v2] " Slava Bacherikov
2022-07-07 19:50 ` Eric Biggers
2022-07-07 20:16 ` Gabriel Krisman Bertazi [this message]
2022-07-07 20:41 ` [PATCH] " Slava Bacherikov
2022-07-07 21:10 ` Gabriel Krisman Bertazi
2022-07-08 12:26 ` [PATCH v4] " Slava Bacherikov
2022-08-13 14:58 ` Theodore Ts'o
2022-07-07 20:51 ` [PATCH v2] " Slava Bacherikov
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=87tu7s3ch6.fsf@collabora.com \
--to=krisman@collabora.com \
--cc=ebiggers@kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=slava@bacher09.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).