From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z23z6-0001OY-3x for qemu-devel@nongnu.org; Mon, 08 Jun 2015 16:49:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z23z5-00041M-9H for qemu-devel@nongnu.org; Mon, 08 Jun 2015 16:49:28 -0400 From: John Snow Date: Mon, 8 Jun 2015 16:49:15 -0400 Message-Id: <1433796555-5608-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH] block: record new size in bdrv_dirty_bitmap_truncate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, John Snow , qemu-devel@nongnu.org, stefanha@redhat.com ce1ffea8 neglected to update the BdrvDirtyBitmap structure itself for internal consistency. It's currently not an issue, but for migration and persistence series this will cause headaches. Signed-off-by: John Snow --- block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block.c b/block.c index 2b9ceae..2786e47 100644 --- a/block.c +++ b/block.c @@ -3224,6 +3224,7 @@ static void bdrv_dirty_bitmap_truncate(BlockDriverState *bs) continue; } hbitmap_truncate(bitmap->bitmap, size); + bitmap->size = size; } } -- 2.1.0