• Andrey Vagin's avatar
    mount: execute collect shared for all mounts · 8d446a7a
    Andrey Vagin authored
    Currently collect_shared is executed for each mount namespace separately,
    so we miss the dependencies between namespaces.
    
    For example, we have two namespaces, the first one contains a tmpfs mount
    and the second one contains a non-root bind-mount of this tmpfs. Without
    this patch this example can't be dumped.
    
    On restore mnt_build_tree() is called for all namespaces at once, thus
    this bug doesn't exist there.
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    8d446a7a
mount.c 44.4 KB