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

opts: add --manage-cgroups option

criu managed cgroups is now an opt-in thing, so by default criu does not manage
(i.e. dump or restore) cgroups. This allows users to use the previous behavior.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Tycho Andersen
2014-08-06 22:23:00 +04:00
committed by Pavel Emelyanov
parent 8b019e0bb4
commit f95b05eb75
9 changed files with 24 additions and 2 deletions

View File

@@ -152,6 +152,12 @@ void criu_set_root(char *root)
opts->root = strdup(root);
}
void criu_set_manage_cgroups(bool manage)
{
opts->has_manage_cgroups = true;
opts->manage_cgroups = manage;
}
void criu_set_log_file(char *log_file)
{
opts->log_file = strdup(log_file);