From nobody Mon Feb 9 09:28:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1593007753; cv=none; d=zohomail.com; s=zohoarc; b=Ut7+gm/+owGH1b8uXqj7613QH1r6GMuFO9sSGixzwkjFpq9x8CHUPvXC99hk4yXRdMdi9z0XNA3a1e1xRaGNL9e27S4sp1YYx2Z8y0agnTkk7Ej4beYVvQUrRUw/e4wZAteah8TiBlnMJ8qHWkmjjzPUl5Pc2t4E9KkqBiXzvK0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593007753; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cpFhDswMMI0AhHIcoB/3WA1uzmyzWbLW7lebSlx2/yw=; b=EZyFtUxGrL29UE9GsY++HrEGdxLTwGz7dbOQ2tZyU6A4LunwXLQrnPrQCcux8cZubTp6BFYgbpe8dTw8IzSOgz15176+e5xY+ue6tnK6wz6pp256vfkvSmxjkeF08PLG+A5r4rM9X7RaWIH3UzyH2uI7BZYMEaiO4vp2349sPMY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1593007753490877.1720196461675; Wed, 24 Jun 2020 07:09:13 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-433--2ACjI_sOXGDvEQGKnRWBg-1; Wed, 24 Jun 2020 10:08:21 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 995268015F8; Wed, 24 Jun 2020 14:08:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 77FE57931F; Wed, 24 Jun 2020 14:08:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 46348104918; Wed, 24 Jun 2020 14:08:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05OE810A017431 for ; Wed, 24 Jun 2020 10:08:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7DCFA5BAEF; Wed, 24 Jun 2020 14:08:01 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id E770C7FE92 for ; Wed, 24 Jun 2020 14:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593007752; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cpFhDswMMI0AhHIcoB/3WA1uzmyzWbLW7lebSlx2/yw=; b=HWJRTCGZSbU/miVDfTDMHRDJPNP4MMTxsr7Gq9w5nwjNT1YAsCM+TDjPB11tgabaOPEPyv /4deES7rpaHa4w3iGDk3cT2pA7vN/2DgrDB4gFQLS2hBYn2Aep1+ZONDiKsWfMm4mDhXDJ 2AC3rBSOIv7b0j1RSPVbtjE8AxN9ht8= X-MC-Unique: -2ACjI_sOXGDvEQGKnRWBg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 4/6] kbase: incrementalbackupinternals: Add section on 'qemu-img bitmap' use Date: Wed, 24 Jun 2020 16:07:51 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Define what users should look for when wanting to manipulate bitmaps themselves. Later on a patch will turn the bash algorithms into pseudocode for simplicity. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- docs/kbase/incrementalbackupinternals.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/kbase/incrementalbackupinternals.rst b/docs/kbase/increme= ntalbackupinternals.rst index adc415e282..c8a0a66baa 100644 --- a/docs/kbase/incrementalbackupinternals.rst +++ b/docs/kbase/incrementalbackupinternals.rst @@ -190,6 +190,20 @@ It's reccomended to use ``--output=3Djson`` parameter = to work with a machine readable output rather than trying to process the human readable output by scripts. For processing JSON in shell the ``jq`` tool can be used. +``qemu-img bitmap`` command allows modification of block-dirty-bitmaps of = an +image. It supports the following operations relevant to this document (see= man +page for full list of operations): + +``--add NAME`` + Creates a new bitmap named ``NAME``. Optionally ``-g`` can be used to + specify granularity. + +``--remove NAME`` + Deletes bitmap ``NAME``. + +``--merge SRCBITMAP -b SRCFILE -F SRCFILEFMT DSTBITMAP`` + Merges bitmap ``SRCBITMAP`` from ``SRCFILE`` into ``DSTBITMAP``. + Checking bitmap health ---------------------- --=20 2.26.2