aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2019-07-29 16:35:56 -0400
committerJohn Snow <jsnow@redhat.com>2019-08-16 18:29:43 -0400
commit590a63d5983c9cdf2e1bf96a519532949963085d (patch)
tree800818b79b0c95675b3ed09a70119a9f99efeb32 /block
parentbd5ceebf6d77e680058e2325765bdedc9292ed76 (diff)
downloadqemu-590a63d5983c9cdf2e1bf96a519532949963085d.zip
qemu-590a63d5983c9cdf2e1bf96a519532949963085d.tar.gz
qemu-590a63d5983c9cdf2e1bf96a519532949963085d.tar.bz2
qapi: add dirty-bitmaps to query-named-block-nodes result
Let's add a possibility to query dirty-bitmaps not only on root nodes. It is useful when dealing both with snapshots and incremental backups. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20190717173937.18747-1-jsnow@redhat.com [Added deprecation information. --js] Signed-off-by: John Snow <jsnow@redhat.com> [Fixed spelling --js]
Diffstat (limited to 'block')
-rw-r--r--block/qapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c
index 917435f..15f1030 100644
--- a/block/qapi.c
+++ b/block/qapi.c
@@ -79,6 +79,11 @@ BlockDeviceInfo *bdrv_block_device_info(BlockBackend *blk,
info->backing_file = g_strdup(bs->backing_file);
}
+ if (!QLIST_EMPTY(&bs->dirty_bitmaps)) {
+ info->has_dirty_bitmaps = true;
+ info->dirty_bitmaps = bdrv_query_dirty_bitmaps(bs);
+ }
+
info->detect_zeroes = bs->detect_zeroes;
if (blk && blk_get_public(blk)->throttle_group_member.throttle_state) {