Skip to content

Commit 46d8d68

Browse files
author
Jayakarteek Vasana
committed
Bug Fix for CLOUDSTACK-9908
1 parent 81453c6 commit 46d8d68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,12 @@ private void setVolumeToPathAndSize(List<VolumeObjectTO> volumeTOs, Map<String,
13031303
// get volume's chain size for this VM snapshot; exclude current volume vdisk
13041304
DataStoreTO store = volumeTO.getDataStore();
13051305
ManagedObjectReference morDs = getDatastoreAsManagedObjectReference(baseName, hyperHost, store);
1306-
long size = getVMSnapshotChainSize(context, hyperHost, baseName + "*.vmdk", morDs, newPath);
1306+
long size = getVMSnapshotChainSize(context, hyperHost, baseName + ".vmdk", morDs, newPath);
1307+
size = getVMSnapshotChainSize(context, hyperHost, baseName + "-*.vmdk", morDs, newPath);
13071308

13081309
if (volumeTO.getVolumeType()== Volume.Type.ROOT) {
13091310
// add memory snapshot size
1310-
size += getVMSnapshotChainSize(context, hyperHost, vmName + "*.vmsn", morDs, null);
1311+
size += getVMSnapshotChainSize(context, hyperHost, vmName + "-*.vmsn", morDs, null);
13111312
}
13121313

13131314
volumeTO.setSize(size);

0 commit comments

Comments
 (0)