From 9d6890772d0a9e233b0402cda2f7c57405575866 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 12 Sep 2012 13:32:12 +0200 Subject: [PATCH] use long timeouts for snapshot monitor command Internal snapshots should be fast, but there is not guarantee. --- PVE/QMPClient.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm index f8b0dc63..6fcce685 100755 --- a/PVE/QMPClient.pm +++ b/PVE/QMPClient.pm @@ -75,6 +75,11 @@ sub cmd { $timeout = 60*60; # 1 hour } elsif ($cmd->{execute} =~ m/^(eject|change)/) { $timeout = 60; # note: cdrom mount command is slow + } elsif ($cmd->{execute} eq 'snapshot-start' || + $cmd->{execute} eq 'snapshot-end' || + $cmd->{execute} eq 'delete-drive-snapshot' || + $cmd->{execute} eq 'snapshot-drive' ) { + $timeout = 10*60; # 10 mins ? } else { $timeout = 3; # default }