diff options
author | Eric Blake <eblake@redhat.com> | 2019-02-19 17:49:43 -0500 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2019-02-19 17:49:43 -0500 |
commit | f67cf661f8b88afe8a5ea2f120583924cba9087f (patch) | |
tree | a29b0cb5290584eeba6b1f7efc569bbee45ac2f5 /block | |
parent | 2e68b8620637a4ee8c79b5724144b726af1e261b (diff) |
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 <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20190204210512.27458-1-eblake@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/dirty-bitmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |