The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8174
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) ===
From 14906754525aab38bdf844bec03d1c36faefe2d0 Mon Sep 17 00:00:00 2001 From: Like Ma <likemarti...@gmail.com> Date: Sun, 22 Nov 2020 03:59:40 +0800 Subject: [PATCH] Support zstd compression. --- shared/archive.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/archive.go b/shared/archive.go index 0e279115a4..122b902c5a 100644 --- a/shared/archive.go +++ b/shared/archive.go @@ -54,6 +54,8 @@ func DetectCompressionFile(f io.Reader) ([]string, string, []string, error) { return []string{"-xf"}, ".squashfs", []string{"sqfs2tar", "--no-skip"}, nil case bytes.Equal(header[0:3], []byte{'Q', 'F', 'I'}): return []string{""}, ".qcow2", []string{"qemu-img", "convert", "-O", "raw"}, nil + case bytes.Equal(header[0:4], []byte{0x28, 0xb5, 0x2f, 0xfd}): + return []string{"--zstd", "-xf"}, ".tar.zst", []string{"zstd", "-d"}, nil default: return nil, "", nil, fmt.Errorf("Unsupported compression") }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel