[CRIU] [PATCH 2/4] libcriu: Add simple missing criu_set_ calls
Pavel Emelyanov
xemul at parallels.com
Wed Jun 25 06:46:01 PDT 2014
These are just copy the value on RPC message and
do nothing more.
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
lib/criu.c | 29 +++++++++++++++++++++++++++++
lib/criu.h | 5 +++++
2 files changed, 34 insertions(+)
diff --git a/lib/criu.c b/lib/criu.c
index 1c98f2f..11ff59b 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -51,6 +51,35 @@ void criu_set_images_dir_fd(int fd)
opts->images_dir_fd = fd;
}
+void criu_set_parent_images(char *path)
+{
+ opts->parent_img = strdup(path);
+}
+
+void criu_set_track_mem(bool track_mem)
+{
+ opts->has_track_mem = true;
+ opts->track_mem = track_mem;
+}
+
+void criu_set_auto_dedup(bool auto_dedup)
+{
+ opts->has_auto_dedup = true;
+ opts->auto_dedup = auto_dedup;
+}
+
+void criu_set_force_irmap(bool force_irmap)
+{
+ opts->has_force_irmap = true;
+ opts->force_irmap = force_irmap;
+}
+
+void criu_set_link_remap(bool link_remap)
+{
+ opts->has_link_remap = true;
+ opts->link_remap = link_remap;
+}
+
void criu_set_work_dir_fd(int fd)
{
opts->has_work_dir_fd = true;
diff --git a/lib/criu.h b/lib/criu.h
index 935a5c8..3bbad48 100644
--- a/lib/criu.h
+++ b/lib/criu.h
@@ -31,6 +31,7 @@ int criu_init_opts(void);
void criu_set_pid(int pid);
void criu_set_images_dir_fd(int fd); /* must be set for dump/restore */
+void criu_set_parent_images(char *path);
void criu_set_work_dir_fd(int fd);
void criu_set_leave_running(bool leave_running);
void criu_set_ext_unix_sk(bool ext_unix_sk);
@@ -38,6 +39,10 @@ void criu_set_tcp_established(bool tcp_established);
void criu_set_evasive_devices(bool evasive_devices);
void criu_set_shell_job(bool shell_job);
void criu_set_file_locks(bool file_locks);
+void criu_set_track_mem(bool track_mem);
+void criu_set_auto_dedup(bool auto_dedup);
+void criu_set_force_irmap(bool force_irmap);
+void criu_set_link_remap(bool link_remap);
void criu_set_log_level(int log_level);
void criu_set_log_file(char *log_file);
void criu_set_cpu_cap(unsigned int cap);
--
1.8.4.2
More information about the CRIU
mailing list