mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
cgroup: Add "ignore" mode for --manage-cgroups
Since commit 6c572bee8f ("cgroup: Set "soft" mode by default") it
become impossible to set ignore mode at all. Provide a user option to do
that.
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
8c5b25cbf5
commit
4eb2df5ae6
3 changed files with 6 additions and 1 deletions
|
|
@ -440,6 +440,8 @@ The 'mode' may be one of the following:
|
|||
*strict*::: Restore all cgroups and their properties from the scratch,
|
||||
requiring them to not present in the system.
|
||||
|
||||
*ignore*::: Don't deal with cgroups and pretend that they don't exist.
|
||||
|
||||
*--cgroup-root* ['controller'*:*]/'newroot'::
|
||||
Change the root cgroup the controller will be installed into. No controller
|
||||
means that root is the default for all controllers not specified.
|
||||
|
|
|
|||
|
|
@ -368,6 +368,8 @@ static int parse_manage_cgroups(struct cr_options *opts, const char *optarg)
|
|||
opts->manage_cgroups = CG_MODE_FULL;
|
||||
} else if (!strcmp(optarg, "strict")) {
|
||||
opts->manage_cgroups = CG_MODE_STRICT;
|
||||
} else if (!strcmp(optarg, "ignore")) {
|
||||
opts->manage_cgroups = CG_MODE_IGNORE;
|
||||
} else
|
||||
goto Esyntax;
|
||||
|
||||
|
|
|
|||
|
|
@ -345,7 +345,8 @@ usage:
|
|||
" --irmap-scan-path FILE\n"
|
||||
" add a path the irmap hints to scan\n"
|
||||
" --manage-cgroups [m] dump/restore process' cgroups; argument can be one of\n"
|
||||
" 'none', 'props', 'soft' (default), 'full' or 'strict'\n"
|
||||
" 'none', 'props', 'soft' (default), 'full', 'strict'\n"
|
||||
" or 'ignore'\n"
|
||||
" --cgroup-root [controller:]/newroot\n"
|
||||
" on dump: change the root for the controller that will\n"
|
||||
" be dumped. By default, only the paths with tasks in\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue