diff options
author | Kevin Wolf <kwolf@redhat.com> | 2019-02-27 10:26:24 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-03-08 12:26:45 +0100 |
commit | 77e023ff79222191e8cc3d377504da8f19926837 (patch) | |
tree | cb20fe92b89dd4dd24f840ddaa41c8026de3685d /audio | |
parent | c6d619cc12813acb2b1198f28cf2256ea9a30107 (diff) | |
download | qemu-77e023ff79222191e8cc3d377504da8f19926837.zip qemu-77e023ff79222191e8cc3d377504da8f19926837.tar.gz qemu-77e023ff79222191e8cc3d377504da8f19926837.tar.bz2 |
qcow2: Return 0/-errno in qcow2_alloc_compressed_cluster_offset()
qcow2_alloc_compressed_cluster_offset() used to return the cluster
offset for success and 0 for error. This doesn't only conflict with 0 as
a valid host offset, but also loses the error code.
Similar to the change made to qcow2_alloc_cluster_offset() for
uncompressed clusters in commit 148da7ea9d6, make the function return
0/-errno and return the allocated cluster offset in a by-reference
parameter.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions