[CRIU] [PATCH 29/32] tools: cpt2 -- Add writing of per-task images
Cyrill Gorcunov
gorcunov at openvz.org
Sat Mar 30 17:43:07 EDT 2013
Per-task images are dump files associated with every task checkpointed.
While patch may look somehow big it does rather trivial things.
- we provide a set of "stub" routines which do nothing but form
output files which are to be filled with real data latter:
write_task_utsns, write_task_ipc, write_task_flocks,
write_task_netdev, write_task_ifaddr, write_task_route,
write_task_itimers
- in turn the following routines do a real conversion
write_task_core, write_task_creds, write_task_mountpoints
as names implied they convert CoreEntry, CredsEntry, MntEntry
Note we don't support threader applications yet, and write_task_kids
is subject to change (some values are not well chosen ones but taken
to work with tests I pass).
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
tools/cpt2/src/convert.c | 6 +
tools/cpt2/src/include/task.h | 1 +
tools/cpt2/src/task.c | 724 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 731 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0029-tools-cpt2-Add-writing-of-per-task-images.patch
Type: text/x-patch
Size: 19204 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130331/5224042f/attachment-0001.bin>
More information about the CRIU
mailing list