Change in ovirt-engine[ovirt-engine-4.1]: core, webadmin: Disable sparsify for pre-allocated disks
Code Review
gerrit at ovirt.org
Tue Feb 14 22:27:30 UTC 2017
>From Tal Nisan <tnisan at redhat.com>:
Tal Nisan has submitted this change and it was merged.
Change subject: core, webadmin: Disable sparsify for pre-allocated disks
......................................................................
core, webadmin: Disable sparsify for pre-allocated disks
* Disable 'Sparsify' button in UI for preallocated disks.
* Return error from SparsifyImageCommand, if it was called for
pre-allocated disk.
virt-sparsify works on pre-allocated disks, but its usage is not
justified for this case. User chooses pre-allocated option if she needs
better performance, because no additional allocation and no
fragmentation will occur when the disk is used. Deallocating some
clusters as result of sparsification will overturn this advantage. If
user wants to save space at cost of some performance decrease, she can
select thin-provisioned option.
Change-Id: Ic99d78b2412ac2023583c551e396369ea9a5f905
Bug-Url: https://bugzilla.redhat.com/1414430
Signed-off-by: Shmuel Melamud <smelamud at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/storage/DiskValidator.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/validator/storage/DiskValidatorTest.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/EngineMessage.java
M backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
M frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
M frontend/webadmin/modules/frontend/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmDiskListModel.java
M frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
M frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
9 files changed, 53 insertions(+), 17 deletions(-)
Approvals:
Tal Nisan: Passed CI tests
Shmuel Leib Melamud: Verified
Arik Hadas: Looks good to me, approved
--
To view, visit https://gerrit.ovirt.org/72286
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic99d78b2412ac2023583c551e396369ea9a5f905
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-4.1
Gerrit-Owner: Shmuel Leib Melamud <smelamud at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Idan Shaby <ishaby at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Shmuel Leib Melamud <smelamud at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
More information about the Engine-commits
mailing list