qcow2: Allow writing compressed data of multiple clusters
commit0d483dce3847e43b415896344a5e60bd0a50823d
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Mon, 2 Dec 2019 12:15:05 +0000 (2 15:15 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jan 2020 12:43:07 +0000 (6 13:43 +0100)
treef14a51a317bd6c5f859d9eafb19f7a2cf109bf9f
parentf41388e0fb04feded9ee09d5e20d7516e700472e
qcow2: Allow writing compressed data of multiple clusters

QEMU currently supports writing compressed data of the size equal to
one cluster. This patch allows writing QCOW2 compressed data that
exceed one cluster. Now, we split buffered data into separate clusters
and write them compressed using the block/aio_task API.

Suggested-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1575288906-551879-3-git-send-email-andrey.shinkevich@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c