[CRIU] [PATCH 06/14] crtools: put kobj-ids into separate image file

Andrew Vagin avagin at parallels.com
Fri Jan 11 06:18:08 EST 2013


On Fri, Jan 11, 2013 at 02:40:30PM +0400, Pavel Emelyanov wrote:
> > @@ -260,6 +260,18 @@ static int read_pstree_image(void)
> >  		task_entries->nr_tasks++;
> >  
> >  		pstree_entry__free_unpacked(e, NULL);
> > +
> > +		fd = open_image_ro(CR_FD_IDS, pi->pid.virt);
> > +		if (fd < 0) {
> > +			if (errno == ENOENT)
> > +				continue;
> 
> This will kill the compatibility with v0.3 and prior.

Are you sure? I checked that this works with old images.
> 
> > +			return -1;
> > +		}
> > +		ret = pb_read_one(fd, &pi->ids, PB_IDS);
> > +		close(fd);
> > +		if (ret != 1)
> > +			goto err;
> > +
> >  	}
> >  err:
> >  	close(ps_fd);
> > 
> 
> 


More information about the CRIU mailing list