]> git.proxmox.com Git - mirror_qemu.git/commit - block/filter-compress.c
block: introduce compress filter driver
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Mon, 2 Dec 2019 12:15:04 +0000 (15:15 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jan 2020 12:43:07 +0000 (13:43 +0100)
commitf41388e0fb04feded9ee09d5e20d7516e700472e
tree112604906132be667ad6ad85906d5291caa5ae5f
parent1b35b85abb93aa6d40ac237e8be3ae87a20a8d0b
block: introduce compress filter driver

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 <mreitz@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 1575288906-551879-2-git-send-email-andrey.shinkevich@virtuozzo.com
[mreitz: Replace NULL bdrv_get_format_name() by "(no format)"]
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/Makefile.objs
block/filter-compress.c [new file with mode: 0644]
qapi/block-core.json