Received: from eggs.gnu.org ([2001:4830:134:3::10]:33471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0pog-0004m1-Jb for qemu-devel@nongnu.org; Fri, 14 Sep 2018 11:15:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0poZ-0001UR-Ki for qemu-devel@nongnu.org; Fri, 14 Sep 2018 11:15:28 -0400 From: Vladimir Sementsov-Ogievskiy Date: Fri, 14 Sep 2018 18:15:10 +0300 Message-Id: <20180914151515.21242-1-vsementsov@virtuozzo.com> Subject: [Qemu-devel] [PATCH v3 0/4] transaction support for bitmap merge List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, mreitz@redhat.com, kwolf@redhat.com, jsnow@redhat.com, famz@redhat.com, vsementsov@virtuozzo.com, den@openvz.org This is a last brick, necessary to play with nbd bitmap export in conjunction with image fleecing. v3: 01: fix type in commit message, add John's r-b 02: splitted refactoring 03: improve commit message, split some refactoring to 02 04: add John's r-b 05: drop extra state variable, make it local instead. John's r-b. v2: don't compare with v1, it is changed a lot, to do the whole thing in .prepare instead of .commit. It is needed to be compatible with backup block job transaction actions [John] Vladimir Sementsov-Ogievskiy (5): dirty-bitmap: switch assert-fails to errors in bdrv_merge_dirty_bitmap dirty-bitmap: rename bdrv_undo_clear_dirty_bitmap dirty-bitmap: make it possible to restore bitmap after merge blockdev: rename block-dirty-bitmap-clear transaction handlers qapi: add transaction support for x-block-dirty-bitmap-merge qapi/transaction.json | 2 ++ include/block/block_int.h | 2 +- include/block/dirty-bitmap.h | 2 +- include/qemu/hbitmap.h | 25 +++++++++------ block/dirty-bitmap.c | 36 +++++++++++++++++----- blockdev.c | 59 +++++++++++++++++++++++++----------- util/hbitmap.c | 11 +++++-- 7 files changed, 99 insertions(+), 38 deletions(-) -- 2.18.0