[CRIU] Re: [RFC] sa_entry converted
    Pavel Emelyanov 
    xemul at parallels.com
       
    Tue Jul 17 23:11:30 EDT 2012
    
    
  
On 07/17/2012 06:50 PM, Cyrill Gorcunov wrote:
> Guys, what do you thing on the patch enveloped?
> I mean about the approach.
> 
> 	Cyrill
> +/*
> + * Don't forget to update protobuf-abi.h if change the message
> + */
> +static int __pb_write_object_with_header(int fd, void *obj, u32 size)
> +{
> +	int ret = 0;
> +
> +	/* header */
> +	ret = sys_write_safe(fd, &size, sizeof(size));
> +
> +	/* object */
> +	if (!ret)
> +		ret = sys_write_safe(fd, obj, size);
> +
> +	return ret;
> +}
> +
> +/*
> + * The structures which maps 1:1 to protobuf messages
> + * on ABI layer. We need them in parasite and/or restorer
> + * code where no way to use PB library.
> + */
Please no. I have updated sigactions dumping so that sa_entry is used outside
of parasite/restorer.
    
    
More information about the CRIU
mailing list