[CRIU] [PATCH] mnt: Don't treat ns roots as special when restoring

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 7 06:27:58 PDT 2015


Namespace roots might be slave ones from another
namespace roots, so we should not treat them as
"always ready" for mounting but rely on general
logic in can_mount_now which tests slaves relations.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 mount.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mount.c b/mount.c
index 00ce2314771e..f5fe1517d6e3 100644
--- a/mount.c
+++ b/mount.c
@@ -2121,8 +2121,6 @@ static bool can_mount_now(struct mount_info *mi)
 	/* The root mount */
 	if (!mi->parent)
 		return true;
-	if (mi->is_ns_root)
-		return true;
 
 	if (mi->external)
 		return true;
-- 
2.4.3



More information about the CRIU mailing list