[CRIU] [PATCH] p.haul: allow specify module-specific criu request options

Nikita Spiridonov nspiridonov at odin.com
Tue Jun 23 10:32:46 PDT 2015


On Tue, 2015-06-23 at 09:45 -0600, Tycho Andersen wrote:
> Hi Cyrill,
> 
> Sorry for the delay,
> 
> On Fri, Jun 19, 2015 at 06:13:59PM +0300, Cyrill Gorcunov wrote:
> > On Fri, Jun 19, 2015 at 08:15:22AM -0600, Tycho Andersen wrote:
> > > On Fri, Jun 19, 2015 at 02:06:01PM +0400, Nikita Spiridonov wrote:
> > > > We have to specify multiple --ext-mount-map options in criu dump
> > > > and restore requests during Virtuozzo container migration to make
> > > > it work. To make it real add possibility that allow specify
> > > > module-specific criu request options.
> > > > 
> > > > Now every phaul module (e.g. Virtuozzo or LXC) have method
> > > > adjust_criu_req; any module-specific request options can be
> > > > specified in this method.
> > > 
> > > Is this something we can use `--ext-mount-map auto` for? In
> > > lxc-checkpoint, we're using that so we don't have to specify all these
> > > by hand (including any extra bind mounts the user may have asked for).
> > 
> > Do you setup all the mounts as bindmount? I must admit i didn't
> > look into "auto" details but how it resolves the paths?
> 
> Yep, they're all prepared as bind mounts. The --ext-mount-map auto
> just does a mounts_equal() between mounts inside the container and
> mounts in criu's mount ns, and if two of them are equal it counts that
> as an external bind mount.
> 
> Tycho

It seems that we can replace mutiple --ext-mount-map options with
--ext-mount-map auto + --enable-external-masters options and it is
better than manual enumeration. Need some time to test it more
precisely.




More information about the CRIU mailing list