From f67cf661f8b88afe8a5ea2f120583924cba9087f Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 19 Feb 2019 17:49:43 -0500 Subject: dirty-bitmap: Expose persistent flag to 'query-block' Since qemu currently doesn't flush persistent bitmaps to disk until shutdown (which might be MUCH later), it's useful if 'query-block' at least shows WHICH bitmaps will (eventually) make it to persistent storage. Update affected iotests. Signed-off-by: Eric Blake Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190204210512.27458-1-eblake@redhat.com Signed-off-by: John Snow --- block/dirty-bitmap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'block') diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c index 00ea36f554..e46f72b346 100644 --- a/block/dirty-bitmap.c +++ b/block/dirty-bitmap.c @@ -440,6 +440,7 @@ BlockDirtyInfoList *bdrv_query_dirty_bitmaps(BlockDriverState *bs) info->has_name = !!bm->name; info->name = g_strdup(bm->name); info->status = bdrv_dirty_bitmap_status(bm); + info->persistent = bm->persistent; entry->value = info; *plist = entry; plist = &entry->next; -- cgit v1.2.3