]> git.proxmox.com Git - qemu-server.git/commitdiff
use long timeouts for snapshot monitor command
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 12 Sep 2012 11:32:12 +0000 (13:32 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 12 Sep 2012 11:32:12 +0000 (13:32 +0200)
Internal snapshots should be fast, but there is not guarantee.

PVE/QMPClient.pm

index f8b0dc637bbca938a612b569e400573806fd5f26..6fcce685aefd0e92ce79ab631acacdfdaeaf5360 100755 (executable)
@@ -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
        }