summaryrefslogtreecommitdiffstats
path: root/qemu-img.c
diff options
context:
space:
mode:
authorAlberto Faria2022-07-05 18:15:18 +0200
committerHanna Reitz2022-07-12 12:14:56 +0200
commit0cadf2c8a37e15d3f3e1191024005e53dabb81f0 (patch)
tree85dfce82fd661e983d2d003a7e207e54931f2e9b /qemu-img.c
parentblock: Export blk_pwritev_part() in block-backend-io.h (diff)
downloadqemu-0cadf2c8a37e15d3f3e1191024005e53dabb81f0.tar.gz
qemu-0cadf2c8a37e15d3f3e1191024005e53dabb81f0.tar.xz
qemu-0cadf2c8a37e15d3f3e1191024005e53dabb81f0.zip
block: Change blk_pwrite_compressed() param order
Swap 'buf' and 'bytes' around for consistency with other I/O functions. Signed-off-by: Alberto Faria <afaria@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220705161527.1054072-11-afaria@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index df607a2a2e..7d4b33b3da 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -2114,7 +2114,7 @@ static int convert_do_copy(ImgConvertState *s)
if (s->compressed && !s->ret) {
/* signal EOF to align */
- ret = blk_pwrite_compressed(s->target, 0, NULL, 0);
+ ret = blk_pwrite_compressed(s->target, 0, 0, NULL);
if (ret < 0) {
return ret;
}