We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab1ec1 commit b045938Copy full SHA for b045938
builder/src/core/node.rs
@@ -292,7 +292,7 @@ impl Node {
292
}
293
294
// No need to perform chunk deduplication for tar-tarfs case.
295
- if ctx.conversion_type != ConversionType::TarToTarfs {
+ if ctx.conversion_type != ConversionType::TarToTarfs && ctx.conversion_type != ConversionType::TargzToRef {
296
chunk = match self.deduplicate_chunk(
297
ctx,
298
blob_mgr,
rafs/src/metadata/direct_v6.rs
@@ -1349,7 +1349,7 @@ impl RafsInodeExt for OndiskInodeWrapper {
1349
blob_index, chunk_index
1350
))
1351
})
1352
- } else if state.is_tarfs() {
+ } else if state.is_tarfs() || state.meta.has_inlined_chunk_digest() {
1353
let size = if idx == self.get_chunk_count() - 1 {
1354
(self.size() % self.chunk_size() as u64) as u32
1355
} else {
0 commit comments