mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
mount: use per-namespace mntinfo_tree (v2)
This patch removes the global mntinfo_tree and collect_mount_info where it was constructed. The mntinfo list is filled from dump_mnt_ns, rst_collect_local_mntns, collect_mnt_namespaces and read_mnt_ns_img. A mountinfo entry contains a reference on a proper ns_id entry, so we cau use mnt_id to look up a proper mount namespace. v2: remove trash after rebasing. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
03c69251ab
commit
2f4be997b6
@@ -1237,9 +1237,6 @@ static int restore_task_with_children(void *_arg)
|
||||
if (restore_finish_stage(CR_STATE_RESTORE_NS) < 0)
|
||||
exit(1);
|
||||
|
||||
if (collect_mount_info(getpid()))
|
||||
exit(1);
|
||||
|
||||
if (prepare_namespace(current, ca->clone_flags))
|
||||
exit(1);
|
||||
|
||||
|
Reference in New Issue
Block a user