2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

cr: Preparations for snapshot

1. Directory with images may have a "parent" symlink pointing to the
   place where the previous snapshot is
2. Each pagemap will have "in_parent" bit, which means, that the
   pages for this pagemap entry are not in the respective page.img
   but in parent
3. New --leave-running option to use with --snapshot not to kill
   tasks after snapshot

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-04-11 17:50:42 +04:00
parent 757f9c570f
commit 60fc6abfd7
4 changed files with 43 additions and 1 deletions

View File

@@ -117,6 +117,8 @@ struct cr_options {
struct list_head scripts;
bool use_page_server;
struct sockaddr_in ps_addr;
bool mem_snapshot;
char *snap_parent;
};
extern struct cr_options opts;
@@ -131,10 +133,13 @@ enum sfd_type {
PROC_FD_OFF,
CTL_TTY_OFF,
SELF_STDIN_OFF,
PARENT_FD_OFF,
SERVICE_FD_MAX
};
#define CR_PARENT_LINK "parent"
extern int clone_service_fd(int id);
extern int init_service_fd(void);
extern int get_service_fd(enum sfd_type type);