]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: blockCopy: Pass adjusted bandwidth when called via blockRebase
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Mar 2015 15:34:13 +0000 (17:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 30 Mar 2015 15:34:13 +0000 (17:34 +0200)
The block copy API takes the speed in bytes/s rather than MiB/s that was
the prior approach in virDomainBlockRebase. We correctly converted the
speed to bytes/s in the old API but we still called the common helper
virDomainBlockCopyCommon with the unadjusted variable.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1207122

src/qemu/qemu_driver.c

index 4d0522106808827f5925ab6e7c396ec88db0bb8b..6700fc958c69da9eca008eb9c118b51e73335fc7 100644 (file)
@@ -16811,7 +16811,7 @@ qemuDomainBlockRebase(virDomainPtr dom, const char *path, const char *base,
     flags &= (VIR_DOMAIN_BLOCK_REBASE_SHALLOW |
               VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT);
     ret = qemuDomainBlockCopyCommon(vm, dom->conn, path, dest,
-                                    bandwidth, 0, 0, flags, true);
+                                    speed, 0, 0, flags, true);
     dest = NULL;
 
  cleanup: