From a22d92f1bbdf67f6895c3fe1545fc574c531c846 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 bee4b448406..4166d98d1b8 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 @@ -1391,6 +1391,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) {