[CRIU] [PATCH 0/2] cg: Introduce custom properties dumping

Cyrill Gorcunov gorcunov at openvz.org
Tue Apr 12 02:40:38 PDT 2016


We may need to c/r custom controllers (in particular some ve
features we keep in own images now) -- so with this series
we may pass a description of controller and its properties
via JSON format inside command line and dump everything into
cgroup image.

The parsing depend on Jansson library so during compilation
we check for its present. But this requirement is optional
and if no lib present we simply disable custom cgroups engine.

Cyrill Gorcunov (2):
  cg: properties -- Move properties handling into separate file
  cg: Add ability to dump custom cgroup properties

 criu/Makefile.config        |   9 ++
 criu/Makefile.crtools       |   1 +
 criu/cgroup-props.c         | 307 ++++++++++++++++++++++++++++++++++++++++++++
 criu/cgroup.c               | 102 ++-------------
 criu/cr-dump.c              |   6 +
 criu/crtools.c              |   5 +
 criu/include/cgroup-props.h |  17 +++
 criu/include/cr_options.h   |   1 +
 scripts/feature-tests.mak   |  26 ++++
 9 files changed, 380 insertions(+), 94 deletions(-)
 create mode 100644 criu/cgroup-props.c
 create mode 100644 criu/include/cgroup-props.h

-- 
2.5.5



More information about the CRIU mailing list