Commit 2d631b45 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

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: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d8cf988a
......@@ -469,6 +469,9 @@ int dump_mnt_ns(int ns_pid, struct cr_fdset *fdset)
return -1;
}
if (mnt_build_tree(pm) == NULL)
return -1;
if (validate_shared(mntinfo)) {
pr_err("Can't proceed %d's mountinfo\n", ns_pid);
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment