[CRIU] [PATCH 0/9] ns procfs handling, v4

Cyrill Gorcunov gorcunov at openvz.org
Fri May 17 09:20:05 EDT 2013


This is updated version. The changes from previous one

 - existing ns_desc are not dropped, I use separate array
   to carry descriptors

 - we check for image file to present thus older criu
   versions would not fail on restore.

Please take a look, thanks!

Cyrill Gorcunov (9):
  image: Add access_image_at helper
  files: Add ability to use read link in dump_one_reg_file
  protobuf: Prepare scaffolds for procfs NS entries
  ns: Extend ns_desc to carry the length of the ns name
  ns: Add parse_ns_proc helper
  ns: Use parse_ns_proc helper in get_ns_id
  files: Yield error in case if procfs namespace reference found
  files: Add c/r for /proc/$pid/ns/$ids references
  test: zdtm -- Add proc-self test

 cr-restore.c                      |   3 +
 cr-show.c                         |   6 ++
 files-reg.c                       |  25 +++---
 files.c                           |  39 ++++++++-
 image.c                           |  13 +++
 include/crtools.h                 |   7 ++
 include/files.h                   |  11 +++
 include/magic.h                   |   1 +
 include/namespaces.h              |  20 +++++
 include/protobuf.h                |   1 +
 ipc_ns.c                          |   5 +-
 mount.c                           |   5 +-
 namespaces.c                      | 179 ++++++++++++++++++++++++++++++++++++--
 net.c                             |   5 +-
 protobuf.c                        |   2 +
 protobuf/Makefile                 |   1 +
 protobuf/fdinfo.proto             |   1 +
 protobuf/ns.proto                 |  15 ++++
 test/zdtm/live/static/Makefile    |   1 +
 test/zdtm/live/static/proc-self.c |  75 ++++++++++++++++
 uts_ns.c                          |   5 +-
 21 files changed, 382 insertions(+), 38 deletions(-)
 create mode 100644 protobuf/ns.proto
 create mode 100644 test/zdtm/live/static/proc-self.c

-- 
1.8.1.4


More information about the CRIU mailing list