From: Vivek Goyal <vgoyal@redhat.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
overlayfs <linux-unionfs@vger.kernel.org>
Subject: Re: [PATCH v2] ovl: return error on mount if metacopy cannot be enabled
Date: Wed, 31 Oct 2018 12:39:39 -0400 [thread overview]
Message-ID: <20181031163939.GD20169@redhat.com> (raw)
In-Reply-To: <CAOQ4uxjGWx02goXcBjqQAUv34N2QcnFLbDVaKykhYNhV71RNBQ@mail.gmail.com>
On Wed, Oct 31, 2018 at 06:04:36PM +0200, Amir Goldstein wrote:
> > Ok. So basically strict and metacopy has no connection but we want to
> > take this opportunity to enable more sane overlayfs behavior by default
> > without breaking backward compatibility.
> >
> > And if a corner case user does not like implicit strict=on, they can
> > specifically do "metacopy=on,strict=off".
> >
>
> Yes, but keep in mind that strict=off will NOT be applied to stable
> v4.19.y *unless* a real user really reports a bug, a-priori, we assume
> that implicit metacopy=on => redirect_dir=on,strict=on is sufficient
> to solve the bug, so it is sufficient for stable.
Did not understand this. So strict=on will be in stable or not? I mean,
all the behavior strict=on enforces will be in 4.19 or not.
If it is not, then it will become backward compatibility issue by the
time 4.20 releases.
If strict=on is not part of 4.19 stable, then you can't switch it
on in 4.20.
What am I missing.
>
> > I am fine with this. Thanks.
> >
> > So every new mount option now will enable strict=on implicitly?
> >
>
> Correct. For example:
>
>
> @@ -109,6 +109,7 @@ config OVERLAY_FS_METACOPY
> bool "Overlayfs: turn on metadata only copy up feature by default"
> depends on OVERLAY_FS
> select OVERLAY_FS_REDIRECT_DIR
> + select OVERLAY_FS_STRICT
> help
> If this config option is enabled then overlay filesystems will
> copy up only metadata where appropriate and data copy up will
>
> ...
>
> @@ -560,6 +599,10 @@ static int ovl_parse_opt(char *opt, struct
> ovl_config *config)
> }
> }
>
> + /* We must honor user explicit request to enable metacopy */
> + if (config->metacopy && !ovl_metacopy_def)
> + config->strict = true;
> +
So if a user loads module with metacopy=on and also specifies metacopy=on
mount option, then strict will not be enforced?
Thanks
Vivek
next prev parent reply other threads:[~2018-10-31 16:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-31 11:10 [PATCH v2] ovl: return error on mount if metacopy cannot be enabled Amir Goldstein
2018-10-31 11:48 ` Miklos Szeredi
2018-10-31 12:19 ` Miklos Szeredi
2018-10-31 12:26 ` Amir Goldstein
2018-10-31 12:35 ` Miklos Szeredi
2018-10-31 12:37 ` Miklos Szeredi
2018-10-31 13:42 ` Amir Goldstein
2018-10-31 14:05 ` Vivek Goyal
2018-10-31 13:29 ` Amir Goldstein
2018-10-31 13:47 ` Vivek Goyal
2018-10-31 14:05 ` Amir Goldstein
2018-10-31 14:17 ` Vivek Goyal
2018-10-31 15:31 ` Amir Goldstein
2018-10-31 15:39 ` Vivek Goyal
2018-10-31 16:04 ` Amir Goldstein
2018-10-31 16:39 ` Vivek Goyal [this message]
2018-10-31 18:37 ` Amir Goldstein
2018-10-31 19:23 ` Vivek Goyal
2018-10-31 19:56 ` Vivek Goyal
2018-10-31 20:24 ` Amir Goldstein
2018-10-31 21:24 ` Vivek Goyal
2018-10-31 22:16 ` 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=20181031163939.GD20169@redhat.com \
--to=vgoyal@redhat.com \
--cc=amir73il@gmail.com \
--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