[CRIU] [PATCH v5 26/42] fdstore: Init fdstore earlier
Kirill Tkhai
ktkhai at virtuozzo.com
Fri May 5 09:17:04 PDT 2017
Do that before creation of usernsd. This allows to get fdstore
files from usernsd.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
criu/cr-restore.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 1ea0f3cdb..1ff029368 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -1561,8 +1561,6 @@ static int restore_task_with_children(void *_arg)
if (prepare_shared_tty())
goto err;
- if (fdstore_init())
- goto err;
if (join_namespaces()) {
pr_perror("Join namespaces failed");
goto err;
@@ -1926,6 +1924,9 @@ static int restore_root_task(struct pstree_item *init)
if (prepare_userns_hook())
return -1;
+ if (fdstore_init())
+ return -1;
+
if (prepare_namespace_before_tasks())
return -1;
More information about the CRIU
mailing list