[CRIU] [PATCH 0/6 v2] split a mount tree to restore over-mounted mounts
Andrei Vagin
avagin at virtuozzo.com
Fri Dec 2 09:36:09 PST 2016
ping
On Thu, Sep 22, 2016 at 09:16:35AM +0300, Andrei Vagin wrote:
> 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
>
> Andrei Vagin (6):
> [v2] mnt: add a function to check whether a mount overmounts something
> mnt: restore shared mounts in a correct shared group
> mnt: add a sub-id to print_ns_root
> mnt: rename roots_mp into root_yard_mp and make it global
> [v2] 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 | 218 ++++++++++++++++++++++++++++++++++----
> test/zdtm/static/Makefile | 1 +
> test/zdtm/static/mntns_remap.c | 101 ++++++++++++++++++
> test/zdtm/static/mntns_remap.desc | 1 +
> 4 files changed, 298 insertions(+), 23 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