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

Cgroup property restoration infrastructure

Restores 2 cgroup properties after the criu restoration of tasks.
Currently the cgroup files to be restored are static but
are easily extendable. To change the properties to be restored,
edit this list at the top of cgroup.c. If a cgroup exists during
restoration, its properties will not be overwritten.
Work based off Tycho Anderson tycho.andersen@canonical.com

Change-Id: Ida32b9773eeac1d4d6e82ad644524ed099d5f9b1
Signed-off-by: Garrison Bellack <gbellack@google.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Garrison Bellack
2014-08-07 15:26:13 -07:00
committed by Pavel Emelyanov
parent 3b0d7fb674
commit 4c7bc7678e
4 changed files with 359 additions and 6 deletions

View File

@@ -1775,6 +1775,9 @@ int cr_restore_tasks(void)
ret = restore_root_task(root_item);
if (prepare_cgroup_properties() < 0)
goto err;
fini_cgroup();
err:
cr_plugin_fini();