Allon Mureinik has posted comments on this change.
Change subject: core: ImagesHandler.setDiskAlias early return
......................................................................
Patch Set 3: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImagesHandler.java
Line 117:
Line 118: String vmName = "";
Line 119: int count = 1;
Line 120: if (vm != null) {
Line 121: vmName = vm.getvm_name();
A disk without a VM is a floating disk - which is a completely valid usecase.
The alias generated here is indeed what we're currently using, until someone
comes up with something better.
Line 122: count = vm.getDiskMapCount() + 1;
Line 123: }
Line 124: disk.setDiskAlias(getSuggestedDiskAlias(disk, vmName, count));
Line 125: return true;
--
To view, visit http://gerrit.ovirt.org/9658
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I69cb7b17e97c86f14eaf64f751183bb5d1b0812a
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches