[CRIU] [PATCH 2/2] cg: Add ability to dump custom cgroup properties

Pavel Emelyanov xemul at virtuozzo.com
Thu Apr 21 06:31:55 PDT 2016


On 04/12/2016 12:40 PM, Cyrill Gorcunov wrote:
> We have some common predefined properties such as
> "cpuset.cpus" and etc gathered in @cgp_predefined
> set, but there might be situation when only predefined
> ones are not enough so add ability to specify additional
> properties via --cgroup-props option.
> 
> This option takes either path to a file or plain JSON
> stream which describe the properties to dump.
> 
> For example one may pass
> 
>   --cgroup-props "{\"controller name 1\" : [ \"property-1\", \"property-2\", ... ]}"
> 
> to dump custom properties.

How about this plan:

1. s/json/yaml/
2. s/hardcoded props/default props yaml file/

The 1st item would let us get rid of jansson library (yaml for the
sake of keeping list of props can be parsed by hands with the 
comparable amount of code). The 2nd would help us keep the list
of props up-to-date easier.

?



More information about the CRIU mailing list