Skip to content
Commit 7e395cae authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov
Browse files

mnt: cut shared root path from bind path



If a mount like:

96 95 0:21 /cgmanager /sys/fs/cgroup/cgmanager rw master:9 - tmpfs tmpfs rw,mode=755

is present in the container and the host has a similar bind mount, e.g.

46 27 0:21 /cgmanager /sys/fs/cgroup/cgmanager rw shared:9 - tmpfs tmpfs rw,mode=755

then the best match mount's root path /and/ the target mountpoint have part of
the path in them; we should cut the shared piece of the path and just
concatenate the non-duplicate pieces.

Reported-by: default avatarAndrew Vagin <avagin@odin.com>
CC: Andrew Vagin <avagin@odin.com>
Signed-off-by: default avatarTycho Andersen <tycho.andersen@canonical.com>
Acked-by: default avatarAndrew Vagin <avagin@odin.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent a1649fd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment