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 /tests | |
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 'tests')
-rw-r--r-- | tests/qemu-iotests/220.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/220.out b/tests/qemu-iotests/220.out index af3021f..33b994b 100644 --- a/tests/qemu-iotests/220.out +++ b/tests/qemu-iotests/220.out @@ -38,7 +38,7 @@ wrote 2097152/2097152 bytes at offset 37748736 No errors were found on the image. image size 39845888 == Trying to write compressed cluster == -write failed: Input/output error +write failed: File too large image size 562949957615616 == Writing normal cluster == wrote 2097152/2097152 bytes at offset 0 |