mnt: cut shared root path from bind path
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: Andrew Vagin <74c05afa918858348d6db8037d82fa8124870113@odin.com>
CC: Andrew Vagin <74c05afa918858348d6db8037d82fa8124870113@odin.com>
Signed-off-by: Tycho Andersen <10c18fcb898ee6b17d6575d444b125d10b3f4d6a@canonical.com>
Acked-by: Andrew Vagin <74c05afa918858348d6db8037d82fa8124870113@odin.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

sdgdsffdsfff/criu,wtf42/criu,marcosnils/criu,efiop/criu,efiop/criu,KKoukiou/criu-remote,biddyweb/criu,ldu4/criu,marcosnils/criu,KKoukiou/criu-remote,svloyso/criu,marcosnils/criu,LK4D4/criu,tych0/criu,fbocharov/criu,LK4D4/criu,fbocharov/criu,biddyweb/criu,rentzsch/criu,rentzsch/criu,tych0/criu,tych0/criu,eabatalov/criu,KKoukiou/criu-remote,LK4D4/criu,eabatalov/criu,fbocharov/criu,KKoukiou/criu-remote,AuthenticEshkinKot/criu,marcosnils/criu,fbocharov/criu,svloyso/criu,KKoukiou/criu-remote,wtf42/criu,svloyso/criu,svloyso/criu,sdgdsffdsfff/criu,sdgdsffdsfff/criu,svloyso/criu,biddyweb/criu,tych0/criu,wtf42/criu,wtf42/criu,AuthenticEshkinKot/criu,gonkulator/criu,fbocharov/criu,efiop/criu,rentzsch/criu,biddyweb/criu,ldu4/criu,AuthenticEshkinKot/criu,wtf42/criu,tych0/criu,efiop/criu,gablg1/criu,gonkulator/criu,AuthenticEshkinKot/criu,LK4D4/criu,efiop/criu,gablg1/criu,marcosnils/criu,wtf42/criu,LK4D4/criu,biddyweb/criu,eabatalov/criu,eabatalov/criu,AuthenticEshkinKot/criu,gablg1/criu,eabatalov/criu,gonkulator/criu,efiop/criu,rentzsch/criu,tych0/criu,AuthenticEshkinKot/criu,LK4D4/criu,gablg1/criu,gonkulator/criu,gonkulator/criu,svloyso/criu,fbocharov/criu,sdgdsffdsfff/criu,ldu4/criu,ldu4/criu,marcosnils/criu,rentzsch/criu,gablg1/criu,gablg1/criu,biddyweb/criu,ldu4/criu,ldu4/criu,gonkulator/criu,sdgdsffdsfff/criu,eabatalov/criu,rentzsch/criu,KKoukiou/criu-remote,sdgdsffdsfff/criu