cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject [06/13] git commit: updated refs/heads/multiple-disk-ova to 3532ffe
Date Fri, 02 May 2014 12:39:35 GMT
CLOUDSTACK-4757 Support OVA with multiple volumes

Update capacity of vmdk file while attaching to disk to worker vm.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>


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

Branch: refs/heads/multiple-disk-ova
Commit: 95cffaa9df7e637f1e61d9eabcab05322fc8108f
Parents: e467d11
Author: Sateesh Chodapuneedi <sateesh@apache.org>
Authored: Thu Mar 13 13:01:43 2014 +0530
Committer: Likitha Shetty <likitha.shetty@citrix.com>
Committed: Fri May 2 13:07:51 2014 +0530

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/95cffaa9/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
index e17b305..2a8474b 100755
--- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
@@ -1350,7 +1350,8 @@ public class HypervisorHostHelper {
             VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
             VirtualDeviceConfigSpec deviceConfigSpec = new VirtualDeviceConfigSpec();
 
-            VirtualDevice device = VmwareHelper.prepareDiskDevice(workerVmMo, null, -1, disks,
morDs, -1, 1);
+            VirtualDisk device = VmwareHelper.prepareDiskDevice(workerVmMo, null, -1, disks,
morDs, -1, 1);
+            device.setCapacityInKB(size);
 
             deviceConfigSpec.setDevice(device);
             deviceConfigSpec.setOperation(VirtualDeviceConfigSpecOperation.ADD);


Mime
View raw message