From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1attA1-00017J-WB for qemu-devel@nongnu.org; Sat, 23 Apr 2016 04:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1attA1-0003CP-2t for qemu-devel@nongnu.org; Sat, 23 Apr 2016 04:43:29 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:24004 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1attA0-0002ov-Mg for qemu-devel@nongnu.org; Sat, 23 Apr 2016 04:43:29 -0400 From: "Denis V. Lunev" Date: Sat, 23 Apr 2016 11:41:51 +0300 Message-Id: <1461400913-7321-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH for 2.7 0/2] backup compression List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: den@openvz.org, Pavel Butsykin , Jeff Cody , Markus Armbruster , Eric Blake , John Snow 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. These patches add the ability to compress data during backup. This functionality is implemented by means of adding options to the qmp/hmp commands(drive-backup, blockdev-backup). The implementation is quite simple, because the responsibility for data compression imposed on the format driver. Signed-off-by: Pavel Butsykin Signed-off-by: Denis V. Lunev CC: Jeff Cody CC: Markus Armbruster CC: Eric Blake CC: John Snow Pavel Butsykin (2): drive-backup: added support for data compression blockdev-backup: added support for data compression block/backup.c | 13 +++++++++++++ blockdev.c | 20 ++++++++++++++++++-- hmp-commands.hx | 8 +++++--- hmp.c | 3 ++- include/block/block_int.h | 1 + qapi/block-core.json | 3 ++- qmp-commands.hx | 7 +++++-- 7 files changed, 46 insertions(+), 9 deletions(-) -- 2.1.4