On Mon, Jul 04, 2016 at 03:28:23PM +0300, Denis V. Lunev wrote: > From: Pavel Butsykin <[email protected]> > > 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 <[email protected]> > Reviewed-by: Stefan Hajnoczi <[email protected]> > Signed-off-by: Denis V. Lunev <[email protected]> > CC: Jeff Cody <[email protected]> > CC: Markus Armbruster <[email protected]> > CC: Eric Blake <[email protected]> > CC: John Snow <[email protected]> > CC: Stefan Hajnoczi <[email protected]> > CC: Kevin Wolf <[email protected]> > --- > block/backup.c | 12 +++++++++++- > blockdev.c | 9 ++++++--- > hmp-commands.hx | 8 +++++--- > hmp.c | 3 +++ > include/block/block_int.h | 1 + > qapi/block-core.json | 5 ++++- > qmp-commands.hx | 5 ++++- > 7 files changed, 34 insertions(+), 9 deletions(-)
Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc
Description: PGP signature
