[CRIU] [PATCH 06/14] crtools: put kobj-ids into separate image file
Pavel Emelyanov
xemul at parallels.com
Fri Jan 11 05:40:30 EST 2013
> @@ -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.
> + 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