From 1126d65aa70e9756a32094e66c55f554d39ff227 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 14 Mar 2024 11:24:26 +0100 Subject: [PATCH] chunked: skip file metadata for composefs files if the file is created using the object-store flat directory format, there is no need to set its inodes attributes, as anyway they are ignored when creating the composefs binary blob. Signed-off-by: Giuseppe Scrivano --- pkg/chunked/storage_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/chunked/storage_linux.go b/pkg/chunked/storage_linux.go index 682245f03..7bbfd7bed 100644 --- a/pkg/chunked/storage_linux.go +++ b/pkg/chunked/storage_linux.go @@ -1595,6 +1595,7 @@ func makeEntriesFlat(mergedEntries []fileMetadata) ([]fileMetadata, error) { hashes[d] = d mergedEntries[i].Name = fmt.Sprintf("%s/%s", d[0:2], d[2:]) + mergedEntries[i].skipSetAttrs = true new = append(new, mergedEntries[i]) }