Commit 11bfc945 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

mount: do nothing if a root mount isn't slave

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b814c752
...@@ -926,7 +926,7 @@ static int resolve_shared_mounts(struct mount_info *info) ...@@ -926,7 +926,7 @@ static int resolve_shared_mounts(struct mount_info *info)
bool need_share, need_master; bool need_share, need_master;
/* the root master_id can be ignored, because it's already created */ /* the root master_id can be ignored, because it's already created */
if (root_master_id == m->master_id) if (root_master_id && root_master_id == m->master_id)
m->master_id = -1; m->master_id = -1;
need_share = m->shared_id && list_empty(&m->mnt_share); need_share = m->shared_id && list_empty(&m->mnt_share);
......
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