linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal@redhat.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: overlayfs <linux-unionfs@vger.kernel.org>,
	Amir Goldstein <amir73il@gmail.com>,
	Daniel J Walsh <dwalsh@redhat.com>
Subject: Re: [PATCH] overlayfs: Return error if metadata only copy-up can't be enabled
Date: Fri, 26 Oct 2018 10:16:40 -0400	[thread overview]
Message-ID: <20181026141640.GC17321@redhat.com> (raw)
In-Reply-To: <CAJfpegu+0iX3BcEXAPQVRpcAWOgyROOT9+Ng92rTp_=1gCBgtg@mail.gmail.com>

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

IOW, enabling redirect_dir automatically has performance implications
for container image building process. Given that, it might be better
to fail and let user conciously make that choise and in the process
understand that there can be downsides to enabling metacopy.

But I am not very particular about it. Automatically enabling redirect_dir
sounds better than disabling metacopy automatically.

Thanks
Vivek

  reply	other threads:[~2018-10-26 14:16 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 [this message]
2018-10-26 14:28     ` Vivek Goyal
2018-10-26 15:40       ` Daniel Walsh

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=20181026141640.GC17321@redhat.com \
    --to=vgoyal@redhat.com \
    --cc=amir73il@gmail.com \
    --cc=dwalsh@redhat.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;
as well as URLs for NNTP newsgroup(s).