qcow2: fix iovec size at qcow2_co_pwritev_compressed
commit8b2bd09338ae44e35a46e324cda566dbf17fc21c
authorPavel Butsykin <pbutsykin@virtuozzo.com>
Mon, 15 Aug 2016 09:39:22 +0000 (15 12:39 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Sep 2016 17:06:48 +0000 (5 19:06 +0200)
treec4788325c359ff8c0f2292604298dec4bfb0aefd
parent980e66216ffc3e37903f979e02c5f63152b518c3
qcow2: fix iovec size at qcow2_co_pwritev_compressed

Use bytes as the size would be more exact than s->cluster_size.  Although
qemu_iovec_to_buf() will not allow to go beyond the qiov.

Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c