Commit cebc6c37 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

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: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent b4ffeeeb
......@@ -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;
......
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