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 <[email protected]> 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 <[email protected]> Authored: Thu Oct 31 23:32:18 2013 -0700 Committer: John Kinsella <[email protected]> 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()); }
