New enhancements for writing compressed data to QCOW2 image.
v4:
The 'compression' support at the block generic layer has been
accumulated in the separate patch 1/4. A little code refactoring
was made.
v3:
Instead of introducing multiple key options for many drivers, the
'compression' option has been introduced at the block generic layer
as suggested by Roman Kagan. Discussed on the email thread with ID
<1570026166-748566-1-git-send-email-andrey.shinkev...@virtuozzo.com>
Andrey Shinkevich (4):
block: support compressed write at generic layer
qcow2: Allow writing compressed data of multiple clusters
tests/qemu-iotests: add case to write compressed data of multiple
clusters
tests/qemu-iotests: add case for block-stream compress
block.c | 20 ++++++++-
block/io.c | 14 ++++--
block/qcow2.c | 106 +++++++++++++++++++++++++++++++++------------
blockdev.c | 9 +++-
include/block/block.h | 1 +
include/block/block_int.h | 2 +
qapi/block-core.json | 6 ++-
qemu-options.hx | 6 ++-
tests/qemu-iotests/030 | 51 +++++++++++++++++++++-
tests/qemu-iotests/030.out | 4 +-
tests/qemu-iotests/214 | 35 +++++++++++++++
tests/qemu-iotests/214.out | 15 +++++++
12 files changed, 230 insertions(+), 39 deletions(-)
--
1.8.3.1