[CRIU] [PATCH 1/3] devmap: Introduce --device-map argument

Cyrill Gorcunov gorcunov at gmail.com
Wed Nov 25 01:21:31 PST 2015


On Wed, Nov 25, 2015 at 12:15:52PM +0300, Pavel Emelyanov wrote:
> > --- a/Documentation/criu.txt
> > +++ b/Documentation/criu.txt
> > @@ -272,6 +272,10 @@ The '<mode>' may be one of below.
> >      These flags enable external shared or slave mounts to be resolved
> >      automatically when '*--ext-mount-map auto*' is passed.
> >  
> > +*--device-map* '<A>'*:*'<B>'[,'<C>'*:*'<D>']::
> > +    Specify device mappings when migrating from one environment
> > +    to another. Currently used for block devices.
> 
> So this is restore-only option, isn't it? Why not make it like --ext-mount-map
> that would allow to replace one ID with another on dump too?

True, it's restore only at the moment. Well, you know, of course we
can do it this way (and I think this gonna be more flexible than as
it done now). I simply didn't need it for dump (because when migrating
we dont know yet which device gonna be used on restore). Still I think
this is better. I'll rework.


More information about the CRIU mailing list