[CRIU] [PATCH] mount: rework perparation for pivot_root (v2)
Andrew Vagin
avagin at parallels.com
Fri Sep 12 06:44:09 PDT 2014
On Fri, Sep 12, 2014 at 05:26:02PM +0400, Pavel Emelyanov wrote:
> On 09/12/2014 05:17 PM, Andrey Vagin wrote:
>
> I agree with
>
> > We can't bind-mount the required root into itself instead of
> > resolving a parent mount.
>
> but see this
>
> > + if (mount(opts.root, opts.root, NULL, MS_BIND, NULL)) {
> > + pr_perror("Unable to bind-mount %s", opts.root);
> > return -1;
> > }
>
> What is going on here? Can we, or cannot?
We can
>
> Thanks,
> Pavel
>
More information about the CRIU
mailing list