[CRIU] [PATCH 2/2] mnt: cut shared root path from bind path
Pavel Emelyanov
xemul at parallels.com
Thu Apr 16 02:16:43 PDT 2015
On 04/15/2015 12:17 PM, Andrew Vagin wrote:
> On Tue, Apr 14, 2015 at 11:23:26PM +0000, Tycho Andersen wrote:
>> 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: Andrew Vagin <avagin at odin.com>
>> CC: Andrew Vagin <avagin at odin.com>
>> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
>
> Acked-by: Andrew Vagin <avagin at odin.com>
Both applied, thanks!
More information about the CRIU
mailing list