[CRIU] Re: [PATCH 1/5] pipes: Make dump_one_pipe_data/restore_pipe_data being non-static

Cyrill Gorcunov gorcunov at openvz.org
Tue Jun 26 05:47:40 EDT 2012


On Tue, Jun 26, 2012 at 01:40:13PM +0400, Pavel Emelyanov wrote:
> >  
> > -static int restore_pipe_data(int pfd, struct pipe_info *pi)
> > +int restore_pipe_data(int img, int pfd, u32 id, int bytes, off_t off)
> >  {
> > -	int fd, size = 0, ret;
> > +	int size = 0, ret;
> >  
> > -	fd = open_image_ro(CR_FD_PIPES_DATA);
> > -	if (fd < 0)
> > -		return -1;
> 
> I'd better pass the open_image_ro's arg into this function rather than the image fd.

OK


More information about the CRIU mailing list