From patchwork Tue Oct 15 18:20:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Shinkevich X-Patchwork-Id: 1177288 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 46t3lL3f03z9sNx for ; Wed, 16 Oct 2019 05:25:50 +1100 (AEDT) Received: from localhost ([::1]:56066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKRW0-0002Tc-1H for incoming@patchwork.ozlabs.org; Tue, 15 Oct 2019 14:25:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59667) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKRR6-0005o9-5r for qemu-devel@nongnu.org; Tue, 15 Oct 2019 14:20:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKRR4-0001T7-U9 for qemu-devel@nongnu.org; Tue, 15 Oct 2019 14:20:43 -0400 Received: from relay.sw.ru ([185.231.240.75]:35014) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iKRR4-0001RG-MZ; Tue, 15 Oct 2019 14:20:42 -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 1iKRQy-0003ry-5s; Tue, 15 Oct 2019 21:20:36 +0300 From: Andrey Shinkevich To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [PATCH v3 0/5] qcow2: advanced compression options Date: Tue, 15 Oct 2019 21:20:20 +0300 Message-Id: <1571163625-642312-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, armbru@redhat.com, mreitz@redhat.com, stefanha@redhat.com, andrey.shinkevich@virtuozzo.com, den@openvz.org, jsnow@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" New enhancements for writing compressed data to QCOW2 image. The preceding patches have been queued in the Max's block branch: Based-on: <20190916175324.18478-1-vsementsov@virtuozzo.com> v2: Instead of introducing multiple key options for many drivers, the 'compression' option has been introduced on generic block layer as suggested by Roman Kagan. Discussed on the thread ID <1570026166-748566-1-git-send-email-andrey.shinkevich@virtuozzo.com> Andrey Shinkevich (5): qcow2: Allow writing compressed data of multiple clusters tests/qemu-iotests: add case to write compressed data of multiple clusters block: support compressed write for copy-on-read block-stream: add compress option tests/qemu-iotests: add case for block-stream compress block.c | 12 ++++- block/io.c | 23 +++++++--- block/qcow2.c | 106 +++++++++++++++++++++++++++++++++------------ block/qcow2.h | 1 + block/stream.c | 10 ++++- block/trace-events | 2 +- blockdev.c | 16 ++++++- include/block/block.h | 1 + include/block/block_int.h | 2 + qapi/block-core.json | 6 ++- qemu-options.hx | 6 ++- tests/qemu-iotests/030 | 51 +++++++++++++++++++++- tests/qemu-iotests/030.out | 4 +- tests/qemu-iotests/214 | 35 +++++++++++++++ tests/qemu-iotests/214.out | 15 +++++++ 15 files changed, 246 insertions(+), 44 deletions(-)