[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/10] drive-backup: added support for data comp
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 06/10] drive-backup: added support for data compression |
Date: |
Fri, 27 May 2016 10:56:45 -0700 |
User-agent: |
Mutt/1.6.0 (2016-04-01) |
On Sat, May 14, 2016 at 03:45:54PM +0300, Denis V. Lunev wrote:
> From: Pavel Butsykin <address@hidden>
>
> The idea is simple - backup is "written-once" data. It is written block
> by block and it is large enough. It would be nice to save storage
> space and compress it.
>
> The patch adds a flag to the qmp/hmp drive-backup command which enables
> block compression. Compression should be implemented in the format driver
> to enable this feature.
>
> There are some limitations of the format driver to allow compressed writes.
> We can write data only once. Though for backup this is perfectly fine.
> These limitations are maintained by the driver and the error will be
> reported if we are doing something wrong.
>
> Signed-off-by: Pavel Butsykin <address@hidden>
> Signed-off-by: Denis V. Lunev <address@hidden>
> CC: Jeff Cody <address@hidden>
> CC: Markus Armbruster <address@hidden>
> CC: Eric Blake <address@hidden>
> CC: John Snow <address@hidden>
> CC: Stefan Hajnoczi <address@hidden>
> CC: Kevin Wolf <address@hidden>
> ---
> block/backup.c | 13 +++++++++++++
> blockdev.c | 12 ++++++++++--
> hmp-commands.hx | 8 +++++---
> hmp.c | 3 ++-
> include/block/block_int.h | 1 +
> qapi/block-core.json | 2 +-
> qmp-commands.hx | 4 +++-
> 7 files changed, 35 insertions(+), 8 deletions(-)
Aside from the API doc issues that Eric mentioned:
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- Re: [Qemu-devel] [PATCH 01/10] block/io: add bdrv_co_write_compressed, (continued)
- [Qemu-devel] [PATCH 05/10] block: remove BlockDriver.bdrv_write_compressed, Denis V. Lunev, 2016/05/14
- [Qemu-devel] [PATCH 07/10] blockdev-backup: added support for data compression, Denis V. Lunev, 2016/05/14
- [Qemu-devel] [PATCH 06/10] drive-backup: added support for data compression, Denis V. Lunev, 2016/05/14
- [Qemu-devel] [PATCH 09/10] block: fix backup in vmdk format image, Denis V. Lunev, 2016/05/14
- [Qemu-devel] [PATCH 08/10] qemu-iotests: test backup compression in 055, Denis V. Lunev, 2016/05/14