summaryrefslogtreecommitdiffstats
path: root/version.rc
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-02-10 15:28:49 -0500
committerKevin Wolf <kwolf@redhat.com>2015-03-10 14:02:21 +0100
commit5fee192efdfe2161d392491e6f68bffb406b18e1 (patch)
tree43ce04767fac499dede19eec87c512e20d02dcfc /version.rc
parent0e06528e980b8ac7695a219f8405d3cdc52a1381 (diff)
downloadhqemu-5fee192efdfe2161d392491e6f68bffb406b18e1.zip
hqemu-5fee192efdfe2161d392491e6f68bffb406b18e1.tar.gz
qcow2: Helper for refcount array reallocation
Add a helper function for reallocating a refcount array, independent of the refcount order. The newly allocated space is zeroed and the function handles failed reallocations gracefully. The helper function will always align the buffer size to a cluster boundary; if storing the refcounts in such an array in big endian byte order, this makes it possible to write parts of the array directly as refcount blocks into the image file. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'version.rc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud