]> git.proxmox.com Git - qemu-server.git/commit
qemu-mirror : block job complete : use ready flag
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 11 May 2015 13:55:21 +0000 (15:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 May 2015 06:18:30 +0000 (08:18 +0200)
commitad123d97f938086fb61a781d95de49f17478e4d9
treea2b10ee33605ae8d27027cb0a9fe4304318e874a
parentd483fa010caed1fc1bd05e68086586ffe6382dc2
qemu-mirror : block job complete : use ready flag

Since qemu 2.2, a new "ready" flag has been added to blockjob
http://git.qemu.org/?p=qemu.git;a=commit;h=ef6dbf1e46ebd1d41ab669df5bba0bbdec6bd374
to known if we can complete it.

we can't use len==offset to known if all block are mirrored, because behaviour will change soon in qemu 2.3

http://git.qemu.org/?p=qemu.git;a=commit;h=b21c76529d55bf7bb02ac736b312f5f8bf033ea2
"block/mirror: Improve progress report

Instead of taking the total length of the block device as the block
job's length, use the number of dirty sectors. The progress is now the
number of sectors mirrored to the target block device. Note that this
may result in the job's length increasing during operation, which is
however in fact desirable.
"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm