Description: fix save image 
 docker-ce (5:20.10.3-16) buster; urgency=low
   * Version: 20.10.3-16
   * fix save image 
Author: wanghuaiqing <wanghuaiqing@loongson.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2022-06-16

--- lcf-utils-1.0.1/src/loongker-ce-20.10.3.orig/sources/engine/layer/layer_store.go
+++ lcf-utils-1.0.1/src/loongker-ce-20.10.3/sources/engine/layer/layer_store.go
@@ -380,7 +380,7 @@ func (ls *layerStore) RegisterDir(dir st
 	if err = storeLayer(tx, layer); err != nil {
 		return nil, err
 	}
-	wtarMeta, err := tx.TarSplitWriter(false)
+	wtarMeta, err := tx.TarSplitWriter(true)
 	if err != nil {
 		return nil, err
 	}
