mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
libcriu: Add simple missing criu_set_ calls
These are just copy the value on RPC message and do nothing more. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
a09396cca5
commit
3f4447d72e
2 changed files with 34 additions and 0 deletions
29
lib/criu.c
29
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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue