mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
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 <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
b4ffeeeba2
commit
cebc6c3796
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue