Allon Mureinik has posted comments on this change.

Change subject: core: Limitation addition for downgrading DC's compatible 
version.
......................................................................


Patch Set 16: Code-Review+1

(4 comments)

http://gerrit.ovirt.org/#/c/35790/16/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/storage/StorageDomainToPoolRelationValidator.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/storage/StorageDomainToPoolRelationValidator.java:

Line 42:     private boolean isStorageDomainOfTypeIsoOrExport() {
Line 43:         return 
storageDomainStatic.getStorageDomainType().isIsoOrImportExportDomain();
Line 44:     }
Line 45: 
Line 46: 
Why add a newline here?
Line 47:     public ValidationResult isStorageDomainTypeSupportedInPool() {
Line 48:         if (storageDomainStatic.getStorageType() == 
StorageType.GLUSTERFS) {
Line 49:             return isGlusterSupportedInDC();
Line 50:         }


Line 133: 
Line 134:         if (storagePool != null) {
Line 135:             if 
(VersionStorageFormatUtil.getPreferredForVersion(storagePool.getCompatibilityVersion(),
Line 136:                     
storageDomainStatic.getStorageType()).compareTo(storageDomainStatic.getStorageFormat())
 < 0) {
Line 137:                 return new 
ValidationResult(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL,
 String.format("$storageFormat %1$s", storageDomainStatic
Why remove the newline here?
Line 138:                         .getStorageFormat().toString()));
Line 139:             }
Line 140:         }
Line 141:         return ValidationResult.VALID;


Line 147:         }
Line 148:         return ValidationResult.VALID;
Line 149:     }
Line 150: 
Line 151: 
Why add a newline here?
Line 152:     public ValidationResult isStorageDomainTypeFitsPoolIfMixed() {
Line 153:             boolean isBlockDomain = 
storageDomainStatic.getStorageType().isBlockDomain();
Line 154: 
Line 155:         if (!isMixedTypesAllowedInDC()) {


Line 205:             if (!(valResult = 
validateAmountOfIsoAndExportDomainsInDC()).isValid()) {
Line 206:                 return valResult;
Line 207:             }
Line 208:         }
Line 209: 
Why add a newline?
Line 210:         if (!(valResult = 
isStorageDomainTypeSupportedInPool()).isValid()) {
Line 211:             return valResult;
Line 212:         }
Line 213:         return ValidationResult.VALID;


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib97488c705a32fe73b390ef226b1ad19a3784b76
Gerrit-PatchSet: 16
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Amit Aviram <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Amit Aviram <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: [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

Reply via email to