From patchwork Tue Oct 1 19:27:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Shinkevich X-Patchwork-Id: 1170163 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=virtuozzo.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46jV2d3lqDz9sDB for ; Wed, 2 Oct 2019 05:39:21 +1000 (AEST) Received: from localhost ([::1]:47152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFNzS-0004Vu-KR for incoming@patchwork.ozlabs.org; Tue, 01 Oct 2019 15:39:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48310) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFNo8-0004i7-Fz for qemu-devel@nongnu.org; Tue, 01 Oct 2019 15:27:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFNo7-0001SI-2F for qemu-devel@nongnu.org; Tue, 01 Oct 2019 15:27:36 -0400 Received: from relay.sw.ru ([185.231.240.75]:45294) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iFNo6-0001Qf-Qd; Tue, 01 Oct 2019 15:27:34 -0400 Received: from [172.16.25.136] (helo=dhcp-172-16-25-136.sw.ru) by relay.sw.ru with esmtp (Exim 4.92.2) (envelope-from ) id 1iFNo2-00060a-Oc; Tue, 01 Oct 2019 22:27:30 +0300 From: Andrey Shinkevich To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [PATCH 0/6] qcow2: advanced compression options Date: Tue, 1 Oct 2019 22:27:14 +0300 Message-Id: <1569958040-697220-1-git-send-email-andrey.shinkevich@virtuozzo.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 185.231.240.75 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, fam@euphon.net, vsementsov@virtuozzo.com, jsnow@redhat.com, armbru@redhat.com, dgilbert@redhat.com, stefanha@redhat.com, andrey.shinkevich@virtuozzo.com, den@openvz.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" New enhancements of writing compressed data to QCOW2 image. Based on: message ID <20190916175324.18478-1-vsementsov@virtuozzo.com> https://lists.nongnu.org/archive/html/qemu-block/2019-09/msg00751.html Andrey Shinkevich (6): qcow2: multiple clusters write compressed tests/qemu-iotests: add case of writing compressed data to multiple clusters. block: support compressed write for copy-on-read qemu-nbd: add compression flag support block-stream: add compress option tests/qemu-iotests: add case for block-stream compress block/io.c | 21 +++++++-- block/qcow2.c | 113 ++++++++++++++++++++++++++++++++++----------- block/stream.c | 19 +++++--- block/trace-events | 2 +- blockdev-nbd.c | 2 +- blockdev.c | 14 +++++- hmp-commands.hx | 4 +- include/block/block_int.h | 3 +- include/block/nbd.h | 7 ++- monitor/hmp-cmds.c | 5 +- nbd/server.c | 8 +++- qapi/block-core.json | 5 +- qemu-nbd.c | 18 +++++++- qemu-nbd.texi | 2 + tests/qemu-iotests/030 | 49 +++++++++++++++++++- tests/qemu-iotests/030.out | 4 +- tests/qemu-iotests/214 | 9 ++++ tests/qemu-iotests/214.out | 6 +++ 18 files changed, 236 insertions(+), 55 deletions(-)