Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/images
diff options
context:
space:
mode:
authorAndrew Vagin <avagin@virtuozzo.com>2016-05-17 03:29:00 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2016-06-28 13:04:58 +0300
commit308741d059d7997bf6dc1f25760a602aa4d7898d (patch)
treed21f68526d7778a569ac850e8c21ac9dbc528be4 /images
parentfdeba04e862ceda9dd4ecc966863ed087a057a32 (diff)
mount: detect sibling mounts correctly
I found the meaning of comparing basename-s for mounts in mount_qual(), which was removed in v2.1-49-gbcf40bf. I think it was an attempt to detect siblings (propagated mounts). Actually it's wrong to compare only basenames for such mounts and we need to generate full paths for them. For example: 28 25 0:25 / /sys/fs/cgroup/devices rw shared:10 - cgroup cgroup rw,devices 29 28 0:49 / /sys/fs/cgroup/devices/101/xxx/yyy ... 38 35 0:25 /101 /sys/fs/cgroup/devices/ rw master:10 - cgroup cgroup rw,devices 39 38 0:49 / /sys/fs/cgroup/devices/xxx/yyy ... 28 and 38 are in the one shared group. 29 and 39 siblings and probably one of them was mounted and another one was propagated. This patch adds a function to generate a sibling mount point and use it to propagate mounts Signed-off-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'images')
0 files changed, 0 insertions, 0 deletions