aboutsummaryrefslogtreecommitdiff
path: root/block/qcow.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-06-30 15:37:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-10 13:44:29 -0500
commitc53ffce91b3e7d8b9d36e4e8bf82c38baf72b337 (patch)
tree1a9aee88fa1e96504614072678578d5831c459bc /block/qcow.c
parent554962405cb18a3e624edf05b6257eaf9273810c (diff)
qcow1: Fix qcow_aio_writev
Pass is_write = 1 to qcow_aio_setup when writing. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block/qcow.c')
-rw-r--r--block/qcow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow.c b/block/qcow.c
index 55a68a698a..7fc85ae588 100644
--- a/block/qcow.c
+++ b/block/qcow.c
@@ -723,7 +723,7 @@ static BlockDriverAIOCB *qcow_aio_writev(BlockDriverState *bs,
s->cluster_cache_offset = -1; /* disable compressed cache */
- acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0);
+ acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 1);
if (!acb)
return NULL;