From 576e560d173723d400ee0c1c5d886b41b6249659 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Tue, 6 Jul 2021 15:47:29 +0200 Subject: [PATCH] extract backup config: less precise matching for broken pipe detection Extracting the config for zstd compressed vma files was broken: Failed to extract config from VMA archive: zstd: error 70 : Write error : cannot write decoded block : Broken pipe (500) since the error message changed and wouldn't match anymore. Signed-off-by: Fabian Ebner --- PVE/Storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index b8e6311..c04b5a2 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1560,7 +1560,7 @@ sub extract_vzdump_config_vma { my $errstring; my $err = sub { my $output = shift; - if ($output =~ m/lzop: Broken pipe: / || $output =~ m/gzip: stdout: Broken pipe/ || $output =~ m/zstd: error 70 : Write error : Broken pipe/) { + if ($output =~ m/lzop: Broken pipe: / || $output =~ m/gzip: stdout: Broken pipe/ || $output =~ m/zstd: error 70 : Write error.*Broken pipe/) { $broken_pipe = 1; } elsif (!defined ($errstring) && $output !~ m/^\s*$/) { $errstring = "Failed to extract config from VMA archive: $output\n"; -- 2.39.2