Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9F97101F9 for ; Mon, 19 Aug 2013 10:34:27 +0000 (UTC) Received: (qmail 21008 invoked by uid 500); 19 Aug 2013 10:34:27 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 20998 invoked by uid 500); 19 Aug 2013 10:34:27 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 20991 invoked by uid 99); 19 Aug 2013 10:34:26 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Aug 2013 10:34:26 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A2FA58BF7B9; Mon, 19 Aug 2013 10:34:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nitin@apache.org To: commits@cloudstack.apache.org Message-Id: <050f949178784cc3b548f8055d9242bc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to 9de7e0a Date: Mon, 19 Aug 2013 10:34:26 +0000 (UTC) Updated Branches: refs/heads/master 0eb169087 -> 9de7e0af1 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 Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9de7e0af Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9de7e0af Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9de7e0af Branch: refs/heads/master Commit: 9de7e0af18c20f22ad89d5c67f8338bac278592c Parents: 0eb1690 Author: Nitin Mehta Authored: Mon Aug 19 16:03:03 2013 +0530 Committer: Nitin Mehta Committed: Mon Aug 19 16:04:12 2013 +0530 ---------------------------------------------------------------------- .../cloud/hypervisor/xen/resource/XenServerStorageProcessor.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9de7e0af/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 60f1ef9..981f147 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) {