You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ni...@apache.org on 2013/08/19 12:33:18 UTC

git commit: updated refs/heads/4.2 to a22d92f

Updated Branches:
  refs/heads/4.2 da0bb6300 -> a22d92f1b


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<ni...@citrix.com>


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

Branch: refs/heads/4.2
Commit: a22d92f1bbdf67f6895c3fe1545fc574c531c846
Parents: da0bb63
Author: Nitin Mehta <ni...@citrix.com>
Authored: Mon Aug 19 16:03:03 2013 +0530
Committer: Nitin Mehta <ni...@citrix.com>
Committed: Mon Aug 19 16:03:03 2013 +0530

----------------------------------------------------------------------
 .../cloud/hypervisor/xen/resource/XenServerStorageProcessor.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a22d92f1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
----------------------------------------------------------------------
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 bee4b44..4166d98 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) {