[CRIU] [PATCH cr 1/2] crtools: link pstree_item-s in a tree (v2)

Andrey Vagin avagin at openvz.org
Fri May 18 05:59:52 EDT 2012


because they describes a process TREE.

It's usefull, when we dump tasks from another pid namespace,
because a real pid is got from parasite. In previous version
we need to update pid in two places one is in a pstree_item and
one is in a children array.

A process tree will be necessery to restore sid and pgid,
because we should add fake tasks in a tree. For example if
a sesion leader is absent.

v2: fix rollback actions

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c         |  238 +++++++++++++++++++++++++++++++++--------------------
 cr-restore.c      |  107 +++++++++++++-----------
 cr-show.c         |   21 ++----
 include/crtools.h |    9 +-
 include/image.h   |    2 +-
 5 files changed, 218 insertions(+), 159 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-crtools-link-pstree_item-s-in-a-tree-v2.patch
Type: text/x-patch
Size: 20036 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120518/e60c64e5/0001-crtools-link-pstree_item-s-in-a-tree-v2.bin


More information about the CRIU mailing list