Repository: cloudstack
Updated Branches:
  refs/heads/master 87ef81375 -> 3f6faeb4c


CLOUDSTACK-9461

This converts the rbd raw format on disk to qcow2 for compression.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/46df85c5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/46df85c5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/46df85c5

Branch: refs/heads/master
Commit: 46df85c5bf14cd64a83e95e8ac035dadd89c0a2f
Parents: 3149705
Author: Nathan Johnson <njohn...@ena.com>
Authored: Wed Aug 17 12:17:14 2016 -0500
Committer: Nathan Johnson <njohn...@ena.com>
Committed: Fri Aug 26 09:52:24 2016 -0500

----------------------------------------------------------------------
 .../com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/46df85c5/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
----------------------------------------------------------------------
diff --git 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
index 29655d1..f11cb21 100644
--- 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
+++ 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
@@ -737,10 +737,10 @@ public class KVMStorageProcessor implements 
StorageProcessor {
                     final QemuImgFile srcFile =
                             new 
QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(primaryPool.getSourceHost(), 
primaryPool.getSourcePort(), primaryPool.getAuthUserName(),
                                     primaryPool.getAuthSecret(), rbdSnapshot));
-                    srcFile.setFormat(PhysicalDiskFormat.RAW);
+                    srcFile.setFormat(snapshotDisk.getFormat());
 
                     final QemuImgFile destFile = new QemuImgFile(snapshotFile);
-                    destFile.setFormat(snapshotDisk.getFormat());
+                    destFile.setFormat(PhysicalDiskFormat.QCOW2);
 
                     s_logger.debug("Backing up RBD snapshot " + rbdSnapshot + 
" to " + snapshotFile);
                     final QemuImg q = new QemuImg(cmd.getWaitInMillSeconds());

Reply via email to