[CRIU] [PATCH 10/15] cr-restore: prepare shared information before namespaces

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Thu Dec 3 05:29:38 PST 2015


Autofs mount restore rely on per-process rst information.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 cr-restore.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 8f3d28f..1452735 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1538,10 +1538,10 @@ static int restore_task_with_children(void *_arg)
 		if (mount_proc())
 			goto err;
 
-		if (prepare_namespace(current, ca->clone_flags))
+		if (root_prepare_shared())
 			goto err;
 
-		if (root_prepare_shared())
+		if (prepare_namespace(current, ca->clone_flags))
 			goto err;
 
 		if (restore_finish_stage(CR_STATE_RESTORE_SHARED) < 0)



More information about the CRIU mailing list