Change in ovirt-engine[master]: engine: Set correct size of iso files and floppies

derez at redhat.com derez at redhat.com
Mon Oct 7 12:43:29 UTC 2013


Daniel Erez has submitted this change and it was merged.

Change subject: engine: Set correct size of iso files and floppies
......................................................................


engine: Set correct size of iso files and floppies

Previously all iso and floppy files appeared in UI with bogus size
of '< 1 GB' although some of them are larger than that. Furthermore it
would be nice to display file size in human readable way.

The root cause of that problem is 'getIsoList' API between Engine and
VDSM which returned only a list of file names until now, so Engine set
their size to 0. It's worth mentioning before explaining API changes
that this list contained only permitted files.

Now this API returns a map with file stats including a size for all
files including not permitted files. Meantime Engine filtering out
files with wrong permissions, but they can be displayed in the future so
user would be able to know why these files are not usable.

Engine uses -1 when size is not available because old versions of VDSM
don't send it.

Change-Id: I77bd99beb8138524b25f0afdcce0815ad8664f0f
Bug-Url: https://bugzilla.redhat.com/1005889
Signed-off-by: Sergey Gotliv <sgotliv at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/IsoDomainListSyncronizer.java
A backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/constants/StorageConstants.java
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/irsbroker/GetFloppyListVDSCommand.java
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/irsbroker/IsoListReturnForXmlRpc.java
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/HsmGetIsoListVDSCommand.java
M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsProperties.java
6 files changed, 108 insertions(+), 48 deletions(-)

Approvals:
  Daniel Erez: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I77bd99beb8138524b25f0afdcce0815ad8664f0f
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <sgotliv at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Sergey Gotliv <sgotliv at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list