Vered Volansky has posted comments on this change.

Change subject: core: ExportVMCommand storage allocation checks
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.ovirt.org/#/c/32897/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java:

Line 161:         // get the snapshots that are going to be exported and have 
memory
Line 162:         snapshotsWithMemory = getSnapshotsToBeExportedWithMemory();
Line 163: 
Line 164:         // check destination storage have free space
Line 165:         handleDestStorageDomain(disksForExport);
> missing 'return false'?
Done
Line 166: 
Line 167:         SnapshotsValidator snapshotValidator = new 
SnapshotsValidator();
Line 168:         if (!(checkVmInStorageDomain()
Line 169:                 && validate(new 
StoragePoolValidator(getStoragePool()).isUp())


Line 184:         dummiesDisksList.addAll(getMemoryDisks());
Line 185:         return validateSpaceRequirements(dummiesDisksList);
Line 186:     }
Line 187: 
Line 188:     private List<DiskImage> getMemoryDisks() {
> we can argue whether the memory files are disks or volumes, but let's keep 
Done
Line 189:         int numOfSnapshots = snapshotsWithMemory.size();
Line 190:         long memorySize = numOfSnapshots * 
getVm().getTotalMemorySizeInBytes();
Line 191:         long metadataSize = numOfSnapshots * 
MemoryUtils.META_DATA_SIZE_IN_BYTES;
Line 192:         List<DiskImage> memoryDisksList = 
MemoryUtils.createDiskDummies(memorySize, metadataSize);


-- 
To view, visit http://gerrit.ovirt.org/32897
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic65fdc7324babacda2d1d49dc7157f6799b922f2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <vvola...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to