cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sate...@apache.org
Subject git commit: updated refs/heads/ova-multiple-disks to 8ec0904
Date Thu, 13 Mar 2014 13:01:30 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/ova-multiple-disks fe9b6b781 -> 8ec0904fb


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/8ec0904f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8ec0904f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8ec0904f

Branch: refs/heads/ova-multiple-disks
Commit: 8ec0904fbb18772366e21f9346b3252d8c5b14d2
Parents: fe9b6b7
Author: Sateesh Chodapuneedi <sateesh@apache.org>
Authored: Thu Mar 13 13:01:43 2014 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Thu Mar 13 13:01:43 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/8ec0904f/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 082e53c..98c6a41 100755
--- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
@@ -1271,7 +1271,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