[Devel] [PATCH criu 1/3] mount: handle error from restore_shared_options()

2016-11-21 Thread Andrey Vagin
From: Andrei Vagin Signed-off-by: Andrei Vagin --- criu/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/criu/mount.c b/criu/mount.c index fcec92f..76d1505 100644 --- a/criu/mount.c +++ b/criu/mount.c @@ -2493,7 +2493,8 @@ static int propagate_mount(struct mount_inf

[Devel] [PATCH criu 2/3] mount: fix mounting non-root shared mounts

2016-11-21 Thread Andrey Vagin
From: Andrei Vagin A widest mount of a shared group has to be mounted first and then other mounts of this group has to be mounted from the first mount to inherite the shared group. https://jira.sw.ru/browse/PSBM-55494 Signed-off-by: Andrei Vagin --- criu/mount.c | 13 - 1 file chan

[Devel] [PATCH criu 3/3] mount: don't create a temporary directory if /tmp exists

2016-11-21 Thread Andrey Vagin
From: Andrei Vagin pivot_root requires a place where to move an old root. Currently a temporary directory is created for that, but it doesn't work if the / directory is read-only. Actually we can use any existing directory. In this patch, criu tries to use /tmp and only if it doesn't exist, criu