[pve-devel] [PATCH qemu-server 2/3] restore vma: add comment describing timeout

Fiona Ebner f.ebner at proxmox.com
Tue Sep 12 11:16:16 CEST 2023


Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 05283562..f7ee7686 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -7367,7 +7367,7 @@ sub restore_vma_archive {
     $add_pipe->(['vma', 'extract', '-v', '-r', $mapfifo, $readfrom, $tmpdir]);
 
     my $oldtimeout;
-    my $timeout = 5;
+    my $timeout = 5; # for reading the VMA header - might hang with a corrupted one
 
     my $devinfo = {}; # info about drives included in backup
     my $virtdev_hash = {}; # info about allocated drives
-- 
2.39.2






More information about the pve-devel mailing list