use long timeouts for snapshot monitor command

Internal snapshots should be fast, but there is not guarantee.
This commit is contained in:
Dietmar Maurer 2012-09-12 13:32:12 +02:00
parent 18bfb361a0
commit 9d6890772d

View File

@ -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
}