]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block: record new size in bdrv_dirty_bitmap_truncate
authorJohn Snow <jsnow@redhat.com>
Mon, 8 Jun 2015 20:49:15 +0000 (16:49 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Jun 2015 13:54:01 +0000 (15:54 +0200)
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 <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c

diff --git a/block.c b/block.c
index 2b9ceae02f4d1a4d2acef1203cb8c485c1b38583..2786e47d1e94270234b1aa79edeeb03eff40f577 100644 (file)
--- 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;
     }
 }