summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2021-06-04 13:45:33 +0000
committerAdrian Reber <adrian@lisas.de>2021-06-07 08:07:15 +0200
commit8aa5340ade611bf3bce3c8613efce28f2b174a1b (patch)
tree1dc97d22f09b985d74e1f7394ff39479b86586ea /libpod/container_internal_linux.go
parent10875a67e4c6ebaf28aa8109c7a4001e70840883 (diff)
downloadpodman-8aa5340ade611bf3bce3c8613efce28f2b174a1b.tar.gz
podman-8aa5340ade611bf3bce3c8613efce28f2b174a1b.tar.bz2
podman-8aa5340ade611bf3bce3c8613efce28f2b174a1b.zip
Add parameter to specify checkpoint archive compression
The checkpoint archive compression was hardcoded to `archive.Gzip`. There have been requests to make the used compression algorithm selectable. There was especially the request to not compress the checkpoint archive to be able to create faster checkpoints when not compressing it. This also changes the default from `gzip` to `zstd`. This change should not break anything as the restore code path automatically handles whatever compression the user provides during restore. Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 74a3fec32..a3acc3198 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -985,7 +985,7 @@ func (c *Container) exportCheckpoint(options ContainerCheckpointOptions) error {
}
input, err := archive.TarWithOptions(c.bundlePath(), &archive.TarOptions{
- Compression: archive.Gzip,
+ Compression: options.Compression,
IncludeSourceDir: true,
IncludeFiles: includeFiles,
})