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

copy: compute blob compression on reused blobs based on source MediaType #1138

Merged
merged 2 commits into from
Feb 19, 2021

Commits on Feb 15, 2021

  1. copy: provide compression info about copied blobs

    When copying a compressed blob without making any modifications to it,
    set the CompressionFormat in the returned BlobInfo to reflect the
    compression algorithm that was used to compress the blob.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    nalind committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    c6e5805 View commit details
    Browse the repository at this point in the history
  2. copy: compute blob compression on reused blobs based on source MediaType

    When copying blobs, if we end up reusing a blob from the destination
    with the same digest as that given in the srcInfo, but don't know how
    that reused blob was compressed, compute the compression information
    from the MediaType included in the srcInfo, if one was supplied.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    nalind committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    f990c32 View commit details
    Browse the repository at this point in the history