From: Daniel Walsh <dwalsh@redhat.com>
To: Vivek Goyal <vgoyal@redhat.com>, Miklos Szeredi <miklos@szeredi.hu>
Cc: overlayfs <linux-unionfs@vger.kernel.org>,
Amir Goldstein <amir73il@gmail.com>
Subject: Re: [PATCH] overlayfs: Return error if metadata only copy-up can't be enabled
Date: Fri, 26 Oct 2018 11:40:24 -0400 [thread overview]
Message-ID: <5967b067-3c1f-8d4d-1d10-d93493f45ea4@redhat.com> (raw)
In-Reply-To: <20181026142846.GD17321@redhat.com>
On 10/26/18 10:28 AM, Vivek Goyal wrote:
> On Fri, Oct 26, 2018 at 10:16:40AM -0400, Vivek Goyal wrote:
>> On Fri, Oct 26, 2018 at 04:10:27PM +0200, Miklos Szeredi wrote:
>>> On Fri, Oct 26, 2018 at 3:43 PM, Vivek Goyal <vgoyal@redhat.com> wrote:
>>>> Assume a user wanted to enable metadata only copy-up and passes metacopy=on.
>>>> If this feature can't be enabled, we disable metacopy=off and just leave
>>>> a warning in logs. metacopy=on requires redirect_dir=on (for upper dir)
>>>> or redirect_dir=follow (for non-upper mount).
>>> What's the reason we can't enable these for metacopy=on automatically?
>>>
>>> I mean, the simplest and least surprising behavior would be if
>>> metacopy would simply imply redirect_dir, no?
>> redirect_dir=on is a significant change. And it might be better if
>> users passes it in (instead of enabling it automatically).
>>
>> For example, when redirect_dir is enabled, container runtime software
>> (docker, podman), their logic to generate image does not work and
>> they have to fall back to *slower* method of diff.
>>
>> https://github.com/moby/moby/pull/34342
> Having said that, metacopy=on will have same issue and user need to
> fall back to slower naivediff interface for image generation.
>
> So enabling redirect_dir automatically probably is good. We could
> just drop a message in logs that it has been enabled automatically.
>
> IOW, I can go either way depending on how others feel about it.
>
> Thanks
> Vivek
I think turning them both on and DOCUMENTING the behavior would be good.
prev parent reply other threads:[~2018-10-26 15:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-26 13:43 [PATCH] overlayfs: Return error if metadata only copy-up can't be enabled Vivek Goyal
2018-10-26 14:10 ` Miklos Szeredi
2018-10-26 14:16 ` Vivek Goyal
2018-10-26 14:28 ` Vivek Goyal
2018-10-26 15:40 ` Daniel Walsh [this message]
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=5967b067-3c1f-8d4d-1d10-d93493f45ea4@redhat.com \
--to=dwalsh@redhat.com \
--cc=amir73il@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=vgoyal@redhat.com \
/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).