[pve-devel] [PATCH container v2] Fix: #2124 add zstd support

Alwin Antreich a.antreich at proxmox.com
Fri Jan 31 17:00:58 CET 2020


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
v1 -> v2: less code changes for container restores

 src/PVE/LXC/Create.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index c13f30d..65d5068 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -79,6 +79,7 @@ sub restore_archive {
 	    '.bz2' => '-j',
 	    '.xz'  => '-J',
 	    '.lzo'  => '--lzop',
+	    '.zst'  => '--zstd',
 	);
 	if ($archive =~ /\.tar(\.[^.]+)?$/) {
 	    if (defined($1)) {
-- 
2.20.1





More information about the pve-devel mailing list