New enhancements for writing compressed data to QCOW2 image.

The preceding patches have been queued in the Max's block branch:

Based-on: <20190916175324.18478-1-vsement...@virtuozzo.com>

v2:
    Instead of introducing multiple key options for many drivers, the
    'compression' option has been introduced on generic block layer
    as suggested by Roman Kagan. Discussed on the thread ID
    <1570026166-748566-1-git-send-email-andrey.shinkev...@virtuozzo.com>

Andrey Shinkevich (5):
  qcow2: Allow writing compressed data of multiple clusters
  tests/qemu-iotests: add case to write compressed data of multiple
    clusters
  block: support compressed write for copy-on-read
  block-stream: add compress option
  tests/qemu-iotests: add case for block-stream compress

 block.c                    |  12 ++++-
 block/io.c                 |  23 +++++++---
 block/qcow2.c              | 106 +++++++++++++++++++++++++++++++++------------
 block/qcow2.h              |   1 +
 block/stream.c             |  10 ++++-
 block/trace-events         |   2 +-
 blockdev.c                 |  16 ++++++-
 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 +++++++
 15 files changed, 246 insertions(+), 44 deletions(-)

-- 
1.8.3.1


Reply via email to