From cebc6c379671010b0d45a06ba7ddcfbad33c66fa Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Sat, 5 Mar 2016 00:38:00 +0300 Subject: [PATCH] mount: don't mount an external mount before all members of a shared group otherwise this mount will not be propagated into non-existant mounts Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- criu/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/criu/mount.c b/criu/mount.c index 1a6b03450..d6d31a182 100644 --- a/criu/mount.c +++ b/criu/mount.c @@ -2416,7 +2416,7 @@ static bool can_mount_now(struct mount_info *mi) return true; if (mi->external) - return true; + goto shared; /* * We're the slave peer: @@ -2439,6 +2439,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;