From 1059cc994d34198ae0c7ce9eb205a8dfe5d5b3c7 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 19 Sep 2012 08:55:23 +0200 Subject: [PATCH] use longer timeouts for snapshot commands --- PVE/Storage/Plugin.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index b986037..92a5978 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -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; }