2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

mount: build tree of mounts before dumping them

When CRIU wants to dump content, it checks that nothing is overmounted.
The list of children for such mounts must be empty, but these lists are
filled during constructing a tree of mounts.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2013-08-01 16:44:38 +04:00 committed by Pavel Emelyanov
parent d8cf988ab9
commit 2d631b4562

View File

@ -469,6 +469,9 @@ int dump_mnt_ns(int ns_pid, struct cr_fdset *fdset)
return -1; return -1;
} }
if (mnt_build_tree(pm) == NULL)
return -1;
if (validate_shared(mntinfo)) { if (validate_shared(mntinfo)) {
pr_err("Can't proceed %d's mountinfo\n", ns_pid); pr_err("Can't proceed %d's mountinfo\n", ns_pid);
return -1; return -1;