[CRIU] [PATCH 04/19] unix: image -- Shift mnt_id index

Cyrill Gorcunov gorcunov at gmail.com
Wed Sep 19 09:44:20 MSK 2018


On Tue, Sep 18, 2018 at 04:48:50PM -0700, Andrey Vagin wrote:
...
> >  
> > diff --git a/images/sk-unix.proto b/images/sk-unix.proto
> > index c59644f6eadd..fc033997a8a8 100644
> > --- a/images/sk-unix.proto
> > +++ b/images/sk-unix.proto
> > @@ -50,5 +50,9 @@ message unix_sk_entry {
> >  	optional bool			deleted		= 15;
> >  
> >  	optional uint32			ns_id		= 16;
> > -	optional sint32			mnt_id		= 17 [default = -1];
> > +	/*
> > +	 * field 17 is reserved for vz7 use
> > +	 */
> > +	optional sint32			old_mnt_id	= 17 [default = -1];
> > +	optional sint32			mnt_id		= 18 [default = -1];
> 
> What is a difference between old_mnt_id and mnt_id?

It is 1:1 map for vanilla criu but happen to clash with number
I already used in vz7 and happen to miss updating vanilla those
time. In result common ground for both criu instance is index 18
but vanilla criu should support old images and there we may
meet index 17. Thus after this patch index 17 is simply obsolete
but supported.

	Cyrill


More information about the CRIU mailing list