Change in ovirt-hosted-engine-ha[v2.0.z]: Fix size calculation when zeroing VDSM volumes

sbonazzo at redhat.com sbonazzo at redhat.com
Mon Jul 11 06:00:23 UTC 2016


Sandro Bonazzola has submitted this change and it was merged.

Change subject: Fix size calculation when zeroing VDSM volumes
......................................................................


Fix size calculation when zeroing VDSM volumes

Instead of os.stat().st_size, which works only on regular files,
open the file and seek to the end.

Change-Id: Ibfba9c165983e6b36dacdff844960827bbe57995
Bug-Url: https://bugzilla.redhat.com/1346341
Signed-off-by: Yedidyah Bar David <didi at redhat.com>
(cherry picked from commit b8b85afa1dcbf3810eaee4acdb0b97a45187403a)
---
M ovirt_hosted_engine_ha/lib/storage_backends.py
1 file changed, 7 insertions(+), 2 deletions(-)

Approvals:
  Sandro Bonazzola: Looks good to me, approved
  Simone Tiraboschi: Looks good to me, but someone else must approve
  Jenkins CI: Passed CI tests
  Yedidyah Bar David: Verified



-- 
To view, visit https://gerrit.ovirt.org/60269
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibfba9c165983e6b36dacdff844960827bbe57995
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: v2.0.z
Gerrit-Owner: Yedidyah Bar David <didi at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Simone Tiraboschi <stirabos at redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <didi at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list