Allon Mureinik has posted comments on this change.
Change subject: core: Verifying storage space for AddDiskCommand
......................................................................
Patch Set 4:
(1 comment)
Minor comment about threshold validations.
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddDiskCommand.java
Line 232: return getParameters().getVmId() == null ||
Guid.Empty.equals(getParameters().getVmId()) || super.isVmExist();
Line 233: }
Line 234:
Line 235: protected boolean validateStorageDomainWithinThresholds() {
Line 236: if (getDiskImageInfo().getVolumeType() != VolumeType.Sparse){
Actually, I'd do this validation regardless.
We leave ourselves some free space in the domain so we can later manipulate
other images - it has nothing to do with the newly added image's format.
(and yes, I know your code doesn't introduce it, but this is the opportunity to
fix it, once we're touching validations.)
Line 237: return
validate(getStorageDomainValidator().isDomainWithinThresholds());
Line 238: }
Line 239: return true;
Line 240: }
--
To view, visit http://gerrit.ovirt.org/15377
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1a33502683ec77fba09efffba1438beb552082f7
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches