From 9de7e0af18c20f22ad89d5c67f8338bac278592c Mon Sep 17 00:00:00 2001 From: Nitin Mehta Date: Mon, 19 Aug 2013 16:03:03 +0530 Subject: [PATCH] CLOUDSTACK-4386 XS Creating templates from volume - send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size Signed off by : nitin mehta --- .../cloud/hypervisor/xen/resource/XenServerStorageProcessor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java index 60f1ef97816..981f147af6e 100644 --- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java +++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java @@ -1379,6 +1379,7 @@ public class XenServerStorageProcessor implements StorageProcessor { newTemplate.setPath(installPath); newTemplate.setFormat(ImageFormat.VHD); newTemplate.setSize(virtualSize); + newTemplate.setPhysicalSize(physicalSize); CopyCmdAnswer answer = new CopyCmdAnswer(newTemplate); return answer; } catch (Exception e) {