New enhancements for writing compressed data to QCOW2 image. The preceding patches have been queued in the Max's block branch:
Based-on: https://github.com/XanClic/qemu.git block v2: The number of parameters in nbd_export_new() has been reduced by the introduced flags for all the boolean ones (suggested by Eric). Andrey Shinkevich (6): qcow2: Allow writing compressed data to multiple clusters tests/qemu-iotests: add case of writing compressed data to multiple clusters qemu-nbd: add compression flag support block: support compressed write for copy-on-read block-stream: add compress option tests/qemu-iotests: add case for block-stream compress block/io.c | 21 +++++++-- block/qcow2.c | 113 ++++++++++++++++++++++++++++++++++----------- block/stream.c | 19 +++++--- block/trace-events | 2 +- blockdev-nbd.c | 8 +++- blockdev.c | 14 +++++- hmp-commands.hx | 4 +- include/block/block_int.h | 3 +- include/block/nbd.h | 11 ++++- monitor/hmp-cmds.c | 5 +- nbd/server.c | 14 ++++-- qapi/block-core.json | 5 +- qemu-nbd.c | 30 ++++++++++-- qemu-nbd.texi | 2 + tests/qemu-iotests/030 | 49 +++++++++++++++++++- tests/qemu-iotests/030.out | 4 +- tests/qemu-iotests/214 | 9 ++++ tests/qemu-iotests/214.out | 6 +++ 18 files changed, 257 insertions(+), 62 deletions(-) -- 1.8.3.1