[CRIU] [PATCH] Enable manage cgroup modes in criu service

Ruslan Kuprieiev kupruser at gmail.com
Thu Aug 6 04:52:03 PDT 2015


But that isn't cool. Maybe we should add enum CG_MODE_* to rpc.proto,
make service parse it into legit CG_MODE_* constants from cr_options.h and
add similar enum to libcriu?

I.e.:
rpc.proto:
enum criu_cg_mode {
     SOFT = 1;
     ...
}

cr-service.c:
...
case CRIU_CG_MODE_SOFT:
     mode = CG_MODE_SOFT;
...

lib/criu.h
enum criu_cg_mode {
     CG_MODE_SOFT,
     ...
}

On 08/06/2015 02:41 PM, Pavel Emelyanov wrote:
> :D I see. These guys will have to hardcode things, but we
> can provide criu.py module for them with such things.
>
> -- Pavel



More information about the CRIU mailing list