From 47641637f69692fb6b1f6816284bb8a65d8a8686 Mon Sep 17 00:00:00 2001 From: John Kinsella Date: Thu, 31 Oct 2013 23:32:18 -0700 Subject: [PATCH] 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 1383287538 -0700 --- .../com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java | 2 ++ 1 file changed, 2 insertions(+) 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 093cdbce50c..9402d0fdee9 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()); }