[CRIU] [PATCH 1/3] mount: build tree of mounts before dumping them

Andrey Vagin avagin at openvz.org
Thu Aug 1 08:44:38 EDT 2013


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 at openvz.org>
---
 mount.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mount.c b/mount.c
index fbc9f7d..68965bb 100644
--- a/mount.c
+++ b/mount.c
@@ -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;
-- 
1.8.3.1



More information about the CRIU mailing list