]> git.proxmox.com Git - pve-storage.git/commitdiff
use longer timeouts for snapshot commands
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Sep 2012 06:55:23 +0000 (08:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Sep 2012 06:55:23 +0000 (08:55 +0200)
PVE/Storage/Plugin.pm

index b9860375505795ce4eeed84bea1366eaf9169cbf..92a59781d8866727d67fcba50331a99db3226254 100644 (file)
@@ -499,7 +499,7 @@ sub volume_resize {
 
     my $cmd = ['/usr/bin/qemu-img', 'resize', $path , $size];
 
-    run_command($cmd, timeout => 1);
+    run_command($cmd, timeout => 10);
 
     return undef;
 }
@@ -515,7 +515,7 @@ sub volume_snapshot {
 
     my $cmd = ['/usr/bin/qemu-img', 'snapshot','-c', $snap, $path];
 
-    run_command($cmd, timeout => 1);
+    run_command($cmd, timeout => 30);
 
     return undef;
 }
@@ -529,7 +529,7 @@ sub volume_snapshot_rollback {
 
     my $cmd = ['/usr/bin/qemu-img', 'snapshot','-a', $snap, $path];
 
-    run_command($cmd, timeout => 1);
+    run_command($cmd, timeout => 30);
 
     return undef;
 }
@@ -545,7 +545,7 @@ sub volume_snapshot_delete {
 
     my $cmd = ['/usr/bin/qemu-img', 'snapshot','-d', $snap, $path];
 
-    run_command($cmd, timeout => 1);
+    run_command($cmd, timeout => 30);
 
     return undef;
 }