[CRIU] [PATCH 4/9] mount: save group and master in image file

Pavel Emelyanov xemul at parallels.com
Tue Jul 9 12:39:50 EDT 2013


>  		pr_err("FS mnt %s dev %#x root %s unsupported\n",
> @@ -749,6 +753,8 @@ static int populate_mnt_ns(int ns_pid)
>  		pm->parent_mnt_id	= me->parent_mnt_id;
>  		pm->s_dev		= me->root_dev;
>  		pm->flags		= me->flags;
> +		pm->shared_id		= me->group;
> +		pm->master_id		= me->master;
>  
>  		/* FIXME: abort unsupported early */
>  		pm->fstype		= decode_fstype(me->fstype);
> diff --git a/protobuf/mnt.proto b/protobuf/mnt.proto
> index 209c2ce..a63ac12 100644
> --- a/protobuf/mnt.proto
> +++ b/protobuf/mnt.proto
> @@ -20,4 +20,7 @@ message mnt_entry {
>  	required string		mountpoint		= 7;
>  	required string		source			= 8;
>  	required string		options			= 9;
> +
> +	optional uint32		group			= 10;
> +	optional uint32		master			= 11;

According to the code above, group is shared_id %)
Can we unscrew the naming up please?

>  }
> 




More information about the CRIU mailing list