cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject git commit: updated refs/heads/master to 4764163
Date Fri, 01 Nov 2013 06:34:38 GMT
Updated Branches:
  refs/heads/master 61b77086f -> 47641637f


Summary: LibvirtStorageAdaptor.getPhysicalDisk() to recogize .raw extension

Detail: getPhysicalDisk() was not matching on volumes with .raw, so
instead setting disk format to QCOW2.

BUG-ID: CLOUDSTACK-5018
Bugfix-for:
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1383287538 -0700


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

Branch: refs/heads/master
Commit: 47641637f69692fb6b1f6816284bb8a65d8a8686
Parents: 61b7708
Author: John Kinsella <jlk@stratosec.co>
Authored: Thu Oct 31 23:32:18 2013 -0700
Committer: John Kinsella <jlk@stratosec.co>
Committed: Thu Oct 31 23:32:18 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/47641637/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
index 093cdbc..9402d0f 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -426,6 +426,8 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
                     disk.setFormat(PhysicalDiskFormat.DIR);
                 } else if (volumeUuid.endsWith("tar") || volumeUuid.endsWith(("TAR"))) {
                     disk.setFormat(PhysicalDiskFormat.TAR);
+                } else if (volumeUuid.endsWith("raw") || volumeUuid.endsWith(("RAW"))) {
+                    disk.setFormat(PhysicalDiskFormat.RAW);
                 } else {
                     disk.setFormat(pool.getDefaultFormat());
                 }


Mime
View raw message