[CRIU] [PATCH 2/2] mount: don't mount an external mount before all members of a shared group
Andrey Vagin
avagin at openvz.org
Fri Mar 4 13:38:00 PST 2016
From: Andrew Vagin <avagin at virtuozzo.com>
otherwise this mount will not be propagated into non-existant mounts
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
criu/mount.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/criu/mount.c b/criu/mount.c
index bac42e1..22c9627 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -2466,7 +2466,7 @@ static bool can_mount_now(struct mount_info *mi)
return true;
if (mi->external)
- return true;
+ goto shared;
/*
* We're the slave peer:
@@ -2489,6 +2489,7 @@ static bool can_mount_now(struct mount_info *mi)
if (!fsroot_mounted(mi) && (mi->bind == NULL && !mi->need_plugin && !mi->external))
return false;
+shared:
if (mi->parent->shared_id) {
struct mount_info *p = mi->parent, *n;
--
2.5.0
More information about the CRIU
mailing list