-
Notifications
You must be signed in to change notification settings - Fork 395
Don't enforce digest match in storage.ReapplyBlob #233
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
Conversation
|
This makes sense in isolation, but we need to figure out how this relates to Actually (None of this fixes the difficulty that, IIRC, |
|
Not sure I follow - |
|
I’m sorry, I was being stupid; Though, if we are recompressing, it’s not only the digest of the compressed data that change, but the size as well, isn’t it? If so, then the |
|
I would have thought it would, but so far I haven't run into that. But you're right, it would make sense to either have |
|
... and if the size we compute is different from an expected value that was passed in, should |
|
We still need |
|
Makes sense. I'll make the changes. |
When reapplying a blob to an image that's being written to the storage transport, don't enforce that the digest and size of the reapplied blob match the blobinfo's values, if they were provided, because compression makes the reapply method (where we reextract the layer, and if it was originally compressed, recompress it) produce data with the same actual content, but with a different compressed bitstream. Like we were previously doing for digest values from the blobinfo, make sure that we return the passed-in blob size if one was specified, else return the value we computed. Signed-off-by: Nalin Dahyabhai <[email protected]>
d919f9e to
19869fa
Compare
|
Patch updated. |
When reapplying a blob to an image that's being written to the storage transport, don't enforce that the digest of the reapplied blob matches the blobinfo's digest, if there is one, because compression makes the reapply method (where we reextract the layer, and if it was originally compressed, recompress it) produce data with the same actual content, but with a different compressed digest.
This should fix cri-o/cri-o#351.