[CRIU] [PATCH 1/2] dump: Rollback in case if -R option passed

Cyrill Gorcunov gorcunov at openvz.org
Thu Oct 31 11:04:53 PDT 2013


It's been found that if -R (leave task running after checkpoint)
option passed we don't unlock network, nether we clean service
files (such as link remaps).

After a long discussion we choose the following path: if -R option
is passed, it means a user is quite confident in what he is doing
and consistency of the resources (file system) is achieved by
a user himself with help of post-dump script. Also a user knows
that the network will be unlocked and accept such case.

So here we check of -R being passed in command line and once
checkpoint complete we unlock the network and cleanup remap
links if they were created durig checkpoint.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c           | 27 +++++++++++++++++++++++----
 files-reg.c         | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 include/files-reg.h |  3 +++
 3 files changed, 73 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dump-Rollback-in-case-if-R-option-passed.patch
Type: text/x-patch
Size: 3954 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20131031/20f44f56/attachment-0001.bin>


More information about the CRIU mailing list