qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] block: record new size in bdrv_dirty_bitmap_truncate
@ 2015-06-08 20:49 John Snow
  2015-06-08 21:14 ` Eric Blake
  2015-06-09  9:24 ` Kevin Wolf
  0 siblings, 2 replies; 5+ messages in thread
From: John Snow @ 2015-06-08 20:49 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, vsementsov, John Snow, qemu-devel, stefanha

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>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-10  7:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08 20:49 [Qemu-devel] [PATCH] block: record new size in bdrv_dirty_bitmap_truncate John Snow
2015-06-08 21:14 ` Eric Blake
2015-06-09  9:24 ` Kevin Wolf
2015-06-09 15:46   ` John Snow
2015-06-10  7:59     ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).