Maor Lipchuk has posted comments on this change. Change subject: core: Add storage validation when plugging an image. ......................................................................
Patch Set 8: (2 inline comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AttachDiskToVmCommand.java Line 97: if (isImageDisk && getStoragePoolIsoMapDao().get(new StoragePoolIsoMapId( Line 98: ((DiskImage) disk).getStorageIds().get(0), getVm().getStoragePoolId())) == null) { Line 99: return failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_MATCH); Line 100: } Line 101: if (isImageDisk) { we should not add an empty line after curly bracket, only before a comment IMHO Line 102: StorageDomain storageDomain = getStorageDomainDAO().getForStoragePool( Line 103: ((DiskImage) disk).getStorageIds().get(0), ((DiskImage) disk).getStoragePoolId()); Line 104: StorageDomainValidator storageDomainValidator = new StorageDomainValidator(storageDomain); Line 105: if (!validate(storageDomainValidator.isDomainExistAndActive())) { Line 104: StorageDomainValidator storageDomainValidator = new StorageDomainValidator(storageDomain); Line 105: if (!validate(storageDomainValidator.isDomainExistAndActive())) { Line 106: return false; Line 107: } Line 108: } see previous comment Line 109: DiskValidator diskValidator = new DiskValidator(disk); Line 110: if (!validate(diskValidator.isVirtIoScsiValid(getVm()))) { Line 111: return false; Line 112: } -- To view, visit http://gerrit.ovirt.org/17170 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ieeb2522bc5aa280b9b98ef728737aeeaa82d1263 Gerrit-PatchSet: 8 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches