qemu-server/PVE
Alexandre Derumier f6ab3bdbf9 drive-mirror : die if stats are empty.
If drive have bad sectors, the block job die.
we need to die if stats are empty to avoid this:

transferred: 21440086016 bytes remaining: 34668544 bytes total: 21474754560 bytes progression: 99.84 %
Use of uninitialized value $transferred in subtraction (-) at /usr/share/perl5/PVE/QemuServer.pm line 4611.
Use of uninitialized value $total in subtraction (-) at /usr/share/perl5/PVE/QemuServer.pm line 4611.
Use of uninitialized value $transferred in multiplication (*) at /usr/share/perl5/PVE/QemuServer.pm line 4612.
Use of uninitialized value $total in division (/) at /usr/share/perl5/PVE/QemuServer.pm line 4612.
clone failed: mirroring error: Illegal division by zero at /usr/share/perl5/PVE/QemuServer.pm line 4612.

Maybe it should be improved by catching qmp events, but doesn't seem to work for now

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-06 11:29:41 +02:00
..
API2 has_features: also return a list of allowed nodes 2013-05-06 08:56:17 +02:00
VZDump add better checks to test if backup was successful 2013-03-15 06:32:14 +01:00
Makefile use new QMPClient code 2012-07-13 07:21:34 +02:00
QemuMigrate.pm fix check if a backing file exist 2013-02-28 06:36:46 +01:00
QemuServer.pm drive-mirror : die if stats are empty. 2013-05-06 11:29:41 +02:00
QMPClient.pm set long timeout for query-block-jobs 2013-05-06 09:25:39 +02:00