Commit d738cf3e authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mounts: initialize root before dumping mount namespace

Currently it's initialized for the root mount namespace, but we are
going to dump nested mount namespaces.

It's used in open_mountpoint(), which is used in dump_tmpfs() and in
other callbacks.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 67456e90
......@@ -821,6 +821,9 @@ int dump_mnt_ns(int ns_pid, int ns_id)
if (img_fd < 0)
return -1;
if (mntns_collect_root(ns_pid))
goto err;
pm = parse_mountinfo(ns_pid);
if (!pm) {
pr_err("Can't parse %d's mountinfo\n", ns_pid);
......
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