File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,9 @@ impl Node {
292
292
}
293
293
294
294
// No need to perform chunk deduplication for tar-tarfs case.
295
- if ctx. conversion_type != ConversionType :: TarToTarfs {
295
+ if ctx. conversion_type != ConversionType :: TarToTarfs
296
+ && ctx. conversion_type != ConversionType :: TargzToRef
297
+ {
296
298
chunk = match self . deduplicate_chunk (
297
299
ctx,
298
300
blob_mgr,
Original file line number Diff line number Diff line change @@ -1349,7 +1349,7 @@ impl RafsInodeExt for OndiskInodeWrapper {
1349
1349
blob_index, chunk_index
1350
1350
) )
1351
1351
} )
1352
- } else if state. is_tarfs ( ) {
1352
+ } else if state. is_tarfs ( ) || state . meta . has_inlined_chunk_digest ( ) {
1353
1353
let size = if idx == self . get_chunk_count ( ) - 1 {
1354
1354
( self . size ( ) % self . chunk_size ( ) as u64 ) as u32
1355
1355
} else {
You can’t perform that action at this time.
0 commit comments