From 5a41f612e52247aac1c4fbd9b2694d857d58dbde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 9 Feb 2024 17:09:31 +0100 Subject: [PATCH] FIXME layer data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- storage/storage_dest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/storage_dest.go b/storage/storage_dest.go index f5fb3603f7..5f54459e9f 100644 --- a/storage/storage_dest.go +++ b/storage/storage_dest.go @@ -88,7 +88,8 @@ type storageImageDestinationLockProtected struct { // Layer identification: For a layer, at least one of indexToTOCDigest and blobDiffIDs must be available before commitLayer is called. blobDiffIDs map[digest.Digest]digest.Digest // Mapping from layer blobsums to their corresponding DiffIDs indexToTOCDigest map[int]digest.Digest // Mapping from layer index to a TOC Digest, IFF the layer was created/found/reused by TOC digest - + // Layer data: For a layer, at least one of (diffOutputs, blobAdditionalLayer, filenames, FIXME layer) + // must be available before commitLayer is called: fileSizes map[digest.Digest]int64 // Mapping from layer blobsums to their sizes filenames map[digest.Digest]string // Mapping from layer blobsums to names of files we used to hold them currentIndex int // The index of the layer to be committed (i.e., lower indices have already been committed)