[CRIU] [PATCH 0/6] mnt: try to split a mount tree to restore over-mounted mounts
Andrei Vagin
avagin at openvz.org
Mon Sep 12 21:19:42 PDT 2016
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>
Andrei Vagin (6):
mnt: add a function to check whether a mount overmounts something
mnt: restore shared mounts in a correct shared group
mntns: add a sub-id to print_ns_root
mnt: pass a mount point patch to get_mp_mountpoint
mnt: try to split a mount tree to restore over-mounted mounts
zdtm: add a test to check a mount tree with overmounts
criu/include/mount.h | 1 +
criu/mount.c | 212 ++++++++++++++++++++++++++++++++++----
test/zdtm/static/Makefile | 1 +
test/zdtm/static/mntns_remap.c | 101 ++++++++++++++++++
test/zdtm/static/mntns_remap.desc | 1 +
5 files changed, 294 insertions(+), 22 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