[CRIU] [PATCH v2 0/3] vzct: c/r kernel.core_pattern sysctl

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Thu Feb 25 07:55:40 PST 2016


Make our virtualized kernel.core_pattern properly c/r, thus
creating universal post-c/r plugin to c/r any custom props
for example Virtuozzo specitic staff with criu.

We can reuse open_image_at, pb_read_one and pb_write_one in criu
plugin and save all custom props to vzct.img in protobuf format.

One can reuse POST_DUMP, POST_RESTORE plugin hooks for own plugin, it
is not for VZCT plugin only, use it as alternative to action-scripts.

https://bugs.openvz.org/browse/OVZ-6696
https://jira.sw.ru/browse/PSBM-44145

v2: change hook names to general ones, fix test, add bug links

Pavel Tikhomirov (3):
  plugin: add POST_DUMP and POST_RESTORE hooks to c/r custom properties
  plugin: VZCT c/r core_pattern in CT
  test: VZCT plugin should c/r VZ7CT kernel.core_pattern sysctl

 criu/cr-dump.c               |  12 ++++-
 criu/cr-restore.c            |  10 +++++
 criu/image-desc.c            |   1 +
 criu/include/criu-plugin.h   |   5 +++
 criu/include/image-desc.h    |   2 +
 criu/include/magic.h         |   1 +
 criu/include/protobuf-desc.h |   1 +
 criu/protobuf-desc.c         |   2 +
 images/Makefile              |   1 +
 images/vzct.proto            |   3 ++
 test/vzct/Makefile           |   4 ++
 test/vzct/run.sh             |  47 +++++++++++++++++++
 test/vzct/vzct.c             | 105 +++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 193 insertions(+), 1 deletion(-)
 create mode 100644 images/vzct.proto
 create mode 100644 test/vzct/Makefile
 create mode 100644 test/vzct/run.sh
 create mode 100644 test/vzct/vzct.c

-- 
1.9.3



More information about the CRIU mailing list