linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amir Goldstein <amir73il@gmail.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	Christian Brauner <brauner@kernel.org>,
	linux-fsdevel@vger.kernel.org,  linux-unionfs@vger.kernel.org
Subject: Re: [PATCH v3] ovl: support layers on case-folding capable filesystems
Date: Mon, 16 Jun 2025 14:36:35 +0200	[thread overview]
Message-ID: <CAOQ4uxiYU_a_rmS9DBOaMizSFVsbiDQBRcf4-f=8hmL-TGbwxQ@mail.gmail.com> (raw)
In-Reply-To: <bc6tvlur6wdeseynuk3wqjlcuv6fwirr4xezofmjlcptk24fhp@w4lzoxf4embt>

On Mon, Jun 16, 2025 at 2:28 PM Kent Overstreet
<kent.overstreet@linux.dev> wrote:
>
> On Mon, Jun 16, 2025 at 10:06:32AM +0200, Amir Goldstein wrote:
> > On Sun, Jun 15, 2025 at 9:20 PM Kent Overstreet
> > <kent.overstreet@linux.dev> wrote:
> > >
> > > On Mon, Jun 02, 2025 at 07:17:02PM +0200, Amir Goldstein wrote:
> > > > Case folding is often applied to subtrees and not on an entire
> > > > filesystem.
> > > >
> > > > Disallowing layers from filesystems that support case folding is over
> > > > limiting.
> > > >
> > > > Replace the rule that case-folding capable are not allowed as layers
> > > > with a rule that case folded directories are not allowed in a merged
> > > > directory stack.
> > > >
> > > > Should case folding be enabled on an underlying directory while
> > > > overlayfs is mounted the outcome is generally undefined.
> > > >
> > > > Specifically in ovl_lookup(), we check the base underlying directory
> > > > and fail with -ESTALE and write a warning to kmsg if an underlying
> > > > directory case folding is enabled.
> > > >
> > > > Suggested-by: Kent Overstreet <kent.overstreet@linux.dev>
> > > > Link: https://lore.kernel.org/linux-fsdevel/20250520051600.1903319-1-kent.overstreet@linux.dev/
> > > > Signed-off-by: Amir Goldstein <amir73il@gmail.com>
> > > > ---
> > > >
> > > > Miklos,
> > > >
> > > > This is my solution to Kent's request to allow overlayfs mount on
> > > > bcachefs subtrees that do not have casefolding enabled, while other
> > > > subtrees do have casefolding enabled.
> > > >
> > > > I have written a test to cover the change of behavior [1].
> > > > This test does not run on old kernel's where the mount always fails
> > > > with casefold capable layers.
> > > >
> > > > Let me know what you think.
> > > >
> > > > Kent,
> > > >
> > > > I have tested this on ext4.
> > > > Please test on bcachefs.
> > >
> > > Where are we at with getting this in? I've got users who keep asking, so
> > > hoping we can get it backported to 6.15
> >
> > I'm planning to queue this for 6.17, but hoping to get an ACK from Miklos first.
>
> This is a regression for bcachefs users, why isn't it being considered for
> 6.16?

This is an ovl behavior change on fs like ext4 regardless of bcachefs.
This change of behavior, which is desired for your users, could expose other
users to other regressions.
I am not sure that it is a clear cut candidate for 6.16,
but I also don't feel very strongly this way or the other, so I will
let Miklos decide.

In any case, even if the change gets merged in 6.17, after the change
was exposed to the world for a bit and no regressions reported,
I have no objections backporting it to older kernels.

Thanks,
Amir.

  reply	other threads:[~2025-06-16 12:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-02 17:17 [PATCH v3] ovl: support layers on case-folding capable filesystems Amir Goldstein
2025-06-04  4:43 ` Kent Overstreet
2025-06-15 19:20 ` Kent Overstreet
2025-06-16  8:06   ` Amir Goldstein
2025-06-16 12:28     ` Kent Overstreet
2025-06-16 12:36       ` Amir Goldstein [this message]
2025-06-16 12:54         ` Kent Overstreet
2025-06-16 15:01           ` Amir Goldstein
2025-06-22  7:20     ` Amir Goldstein
2025-06-22  7:36       ` Amir Goldstein
2025-06-23 10:26       ` Christian Brauner
2025-06-23 10:31         ` Amir Goldstein
2025-06-26 13:37       ` Kent Overstreet
2025-06-26 13:44         ` Amir Goldstein
2025-06-23 10:27 ` Christian Brauner
2025-06-30 11:33 ` Miklos Szeredi

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='CAOQ4uxiYU_a_rmS9DBOaMizSFVsbiDQBRcf4-f=8hmL-TGbwxQ@mail.gmail.com' \
    --to=amir73il@gmail.com \
    --cc=brauner@kernel.org \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /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).