Change in vdsm[master]: fileVolume: avoid full size truncation for cow
nsoffer at redhat.com
nsoffer at redhat.com
Mon May 12 17:20:09 UTC 2014
Nir Soffer has posted comments on this change.
Change subject: fileVolume: avoid full size truncation for cow
......................................................................
Patch Set 2:
(1 comment)
http://gerrit.ovirt.org/#/c/27544/2/vdsm/storage/fileVolume.py
File vdsm/storage/fileVolume.py:
Line 117: Class specific implementation of volumeCreate. All the exceptions are
Line 118: properly handled and logged in volume.create()
Line 119: """
Line 120:
Line 121: sizeBytes = size * BLOCK_SIZE
> It's a good move to trust the caller regarding size being int. But I'd like
I suggest to return the int() call in this patch.
Line 122: truncSize = sizeBytes if volFormat == volume.RAW_FORMAT else 0
Line 123:
Line 124: try:
Line 125: oop.getProcessPool(dom.sdUUID).truncateFile(volPath, truncSize,
--
To view, visit http://gerrit.ovirt.org/27544
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I3414459797236b1055d92f33d86baf1fae7f52fd
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: Xavi Francisco <xfrancis at redhat.com>
Gerrit-Reviewer: Yoav Kleinberger <ykleinbe at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list