Skip to content

Commit ec59e69

Browse files
committed
changed overwritevolumecontent based on powerflex version and removed unnecessary comments
1 parent 9494fd6 commit ec59e69

File tree

3 files changed

+61
-1182
lines changed

3 files changed

+61
-1182
lines changed

engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/ScaleIOVMSnapshotStrategy.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,6 @@ public VMSnapshot takeVMSnapshot(VMSnapshot vmSnapshot) {
201201
if (volumeIds != null && !volumeIds.isEmpty()) {
202202
List<VMSnapshotDetailsVO> vmSnapshotDetails = new ArrayList<VMSnapshotDetailsVO>();
203203
vmSnapshotDetails.add(new VMSnapshotDetailsVO(vmSnapshot.getId(), "SnapshotGroupId", snapshotGroupId, false));
204-
205-
/* for (int index = 0; index < volumeIds.size(); index++) {
206-
String volumeSnapshotName = srcVolumeDestSnapshotMap.get(ScaleIOUtil.getVolumePath(volumeTOs.get(index).getPath()));
207-
String pathWithScaleIOVolumeName = ScaleIOUtil.updatedPathWithVolumeName(volumeIds.get(index), volumeSnapshotName);
208-
vmSnapshotDetails.add(new VMSnapshotDetailsVO(vmSnapshot.getId(), "Vol_" + volumeTOs.get(index).getId() + "_Snapshot", pathWithScaleIOVolumeName, false));
209-
}
210-
*/
211-
// Invert the srcVolumeDestSnapshotMap: snapshotName -> srcVolumePath
212-
// Invert the srcVolumeDestSnapshotMap: snapshotName -> srcVolumePath
213204
Map<String, String> snapshotNameToSrcPathMap = new HashMap<>();
214205
for (Map.Entry<String, String> entry : srcVolumeDestSnapshotMap.entrySet()) {
215206
snapshotNameToSrcPathMap.put(entry.getValue(), entry.getKey());

0 commit comments

Comments
 (0)