Damans227 commented on code in PR #13901:
URL: https://github.com/apache/cloudstack/pull/13901#discussion_r4295828589


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtTakeKbossBackupCommandWrapper.java:
##########
@@ -297,8 +298,13 @@ protected void convertDeltaToSecondary(String 
pathDeltaOnPrimary, String pathDel
         createDirsIfNeeded(pathDeltaOnSecondary, volumeUuid);
 
         QemuImg qemuImg = new QemuImg(waitInMillis);
-        qemuImg.convert(backupOrigin, backupDestination, parentBackup, null, 
null,  new QemuImageOptions(backupOrigin.getFormat(), 
backupOrigin.getFileName(), null), null,
-                true, false, false, false, null, null);
+        Map<String, String> options = new HashMap<>();
+        if (command.isCompress()) {
+            qemuImg.setCompressionTypeOptionIfAvailable(options, 
command.getCompressionLib());
+        }
+        qemuImg.convert(backupOrigin, backupDestination, parentBackup, 
options, null,  new QemuImageOptions(backupOrigin.getFormat(), 
backupOrigin.getFileName(), null), null,
+                true, false, false, command.isCompress(), 
command.getCoroutines(), command.getRateLimit());

Review Comment:
   should this go through the same rate limit check as the separate compress 
step? with the default of 0 this passes -r 0M to qemu-img, and qemu older than 
5.2 has no -r at all



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to