[CRIU] [PATCH 0/6 v3] split a mount tree to restore over-mounted mounts

Andrei Vagin avagin at openvz.org
Wed Dec 7 23:30:05 PST 2016


From: Andrei Vagin <avagin at virtuozzo.com>

From: Andrei Vagin <avagin at virtuozzo.com>

If a mount overmounts something else, we can try to restore it
separetly and then move it to the right places after restoring
all mounts.

In this patch if we see that a mount is overmounts something,
we create a new directory in the root yard and restore this
mount and its sub-tree in this directory.

This series allows to handle systemd services for which
PrivateDevices is set in config files.

https://bugs.openvz.org/browse/OVZ-6778
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>

v2: fix comments from Pavel
v3: fix comments from Pavel :)

Andrei Vagin (5):
  mnt: clean up
  mnt: add a sub-id to print_ns_root
  mnt: rename roots_mp into root_yard_mp and make it global
  [v3] mnt: try to split a mount tree to restore over-mounted mounts
  zdtm: add a test to check a mount tree with overmounts

 criu/mount.c                      | 193 ++++++++++++++++++++++++++++++++++----
 test/zdtm/static/Makefile         |   1 +
 test/zdtm/static/mntns_remap.c    | 101 ++++++++++++++++++++
 test/zdtm/static/mntns_remap.desc |   1 +
 4 files changed, 278 insertions(+), 18 deletions(-)
 create mode 100644 test/zdtm/static/mntns_remap.c
 create mode 100644 test/zdtm/static/mntns_remap.desc

--
2.7.4



More information about the CRIU mailing list