On 11/11/19 10:04 AM, Andrey Shinkevich wrote:
Allow writing all the data compressed through the filter driver.
The written data will be aligned by the cluster size.
Based on the QEMU current implementation, that data can be written to
unallocated clusters only. May be used for a backup job.
Suggested-by: Max Reitz <mre...@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com>
---
block/Makefile.objs | 1 +
block/filter-compress.c | 212 ++++++++++++++++++++++++++++++++++++++++++++++++
qapi/block-core.json | 10 ++-
3 files changed, 219 insertions(+), 4 deletions(-)
create mode 100644 block/filter-compress.c
+++ b/qapi/block-core.json
@@ -2884,15 +2884,16 @@
# @copy-on-read: Since 3.0
# @blklogwrites: Since 3.0
# @blkreplay: Since 4.2
+# @compress: Since 4.2
Are we still trying to get this in 4.2, even though soft freeze is past?
Or are we going to have to defer it to 5.0 as a new feature?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org