[WIP] compression: add specific prefix for zstd:chunked#2183
Conversation
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Needs: containers/storage#1756 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
mtrmac
left a comment
There was a problem hiding this comment.
Implementation LGTM, but when do we need this?
The two zstd variants should be differentiated by annotations; and the layer can’t be pulled without the ManifestChecksumKey annotation present.[1] Are there any situations where need to treat such “chunked blob, but no chunked annotations” layers specially?
[1]… actually that sounds like another thing we don’t handle: when pushing from c/storage to a registry, TryReusingBlobWithOptions will find a record of a pre-existing zstd:chunked layer and return that it should be reused, but we don’t set the right annotations on that blob. (So we would need to record these annotations in BlobInfoCache, and take good care that we only record them when we created them ourselves, or after we have verified them when pulling.)
|
I am not even sure if we need any of these. The blob info cache probably doesn't make sense when using a layer that was partially pulled. |
|
The compression data in the BIC exists for But we do need it for pushes:
Also, if users ask for |
it allows to differentiate between zstd and zstd:chunked
Needs: containers/storage#1756
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com