Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully populate layer records for mapped image top layers #1197

Merged
merged 1 commit into from Apr 13, 2022

Commits on Apr 12, 2022

  1. Fully populate layer records for mapped image top layers

    When we create a copy of an image's top layer that's intended to be
    identical to the top layer, except for having some set of ID mappings
    already applied to it, copy over the template layer's compressed and
    uncompressed digest and size information, compression information,
    tar-split data, and lists of used UIDs and GIDs, if we have them.
    
    The lack of sizing information was forcing ImageSize() to regenerate the
    diffs to determine the size of the mapped layers, which shouldn't have
    been necessary.
    
    Teach the overlay DiffGetter to look for files in the diff directories
    of lower layers if we can't find them in the current layer, so that
    tar-split can retrieve content that we didn't have to pull up.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    nalind committed Apr 12, 2022
    Copy the full SHA
    d76b360 View commit details
    Browse the repository at this point in the history