[PATCH v3 15/16] qemu: migrate: copy disks stats to completed job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/qemu/qemu_migration.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 76c8554..1703274 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -3831,6 +3831,13 @@ qemuMigrationRun(virQEMUDriverPtr driver,
                                            QEMU_ASYNC_JOB_MIGRATION_OUT,
                                            dconn) < 0)
             ret = -1;
+
+        if (ret == 0 && priv->job.completed) {
+            priv->job.completed->stats.disk_transferred =
+                                    priv->job.current->stats.disk_transferred;
+            priv->job.completed->stats.disk_total =
+                                    priv->job.current->stats.disk_total;
+        }
     }
 
     VIR_FREE(tlsAlias);
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux