cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 9fe5d39
Date Mon, 29 Jul 2013 11:05:24 GMT
CLOUDSTACK-3849: Set volume size in CopyAnswer for Vmware when cloning volume from bas template


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

Branch: refs/heads/master
Commit: 9fe5d398a2673e26c7c2f6a54018974630991d4e
Parents: e34a750
Author: Kishan Kavala <kishan@cloud.com>
Authored: Mon Jul 29 16:34:03 2013 +0530
Committer: Kishan Kavala <kishan@cloud.com>
Committed: Mon Jul 29 16:34:46 2013 +0530

----------------------------------------------------------------------
 .../src/com/cloud/storage/resource/VmwareStorageProcessor.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9fe5d398/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
b/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
index 65a0cb5..6f569e0 100644
--- a/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
@@ -363,6 +363,7 @@ public class VmwareStorageProcessor implements StorageProcessor {
 
 					VolumeObjectTO newVol = new VolumeObjectTO();
 					newVol.setPath(vmdkName);
+                    newVol.setSize(volume.getSize());
 					return new CopyCmdAnswer(newVol);
 				} finally {
 					vmMo.detachAllDisks();
@@ -400,6 +401,7 @@ public class VmwareStorageProcessor implements StorageProcessor {
 				dsMo.deleteFile(srcFile, dcMo.getMor(), true);
 				VolumeObjectTO newVol = new VolumeObjectTO();
 				newVol.setPath(vmdkName);
+                newVol.setSize(volume.getSize());
 				return new CopyCmdAnswer(newVol);
 			}
 		} catch (Throwable e) {


Mime
View raw message