[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 12/20] qmp: Add dirty bitmap status field in quer
From: |
John Snow |
Subject: |
[Qemu-devel] [PATCH v4 12/20] qmp: Add dirty bitmap status field in query-block |
Date: |
Fri, 20 Mar 2015 15:16:55 -0400 |
Add the "frozen" status booleans, to inform clients
when a bitmap is occupied doing a task.
Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: John Snow <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
---
block.c | 1 +
qapi/block-core.json | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/block.c b/block.c
index a4b3e34..005b535 100644
--- a/block.c
+++ b/block.c
@@ -5600,6 +5600,7 @@ BlockDirtyInfoList
*bdrv_query_dirty_bitmaps(BlockDriverState *bs)
info->granularity = bdrv_dirty_bitmap_granularity(bm);
info->has_name = !!bm->name;
info->name = g_strdup(bm->name);
+ info->frozen = bdrv_dirty_bitmap_frozen(bm);
entry->value = info;
*plist = entry;
plist = &entry->next;
diff --git a/qapi/block-core.json b/qapi/block-core.json
index dbcf25a..e57b116 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -336,10 +336,13 @@
#
# @granularity: granularity of the dirty bitmap in bytes (since 1.4)
#
+# @frozen: whether the dirty bitmap is frozen (Since 2.4)
+#
# Since: 1.3
##
{ 'type': 'BlockDirtyInfo',
- 'data': {'*name': 'str', 'count': 'int', 'granularity': 'uint32'} }
+ 'data': {'*name': 'str', 'count': 'int', 'granularity': 'uint32',
+ 'frozen': 'bool'} }
##
# @BlockInfo:
--
2.1.0
- [Qemu-devel] [PATCH v4 17/20] iotests: add invalid input incremental backup tests, (continued)
- [Qemu-devel] [PATCH v4 17/20] iotests: add invalid input incremental backup tests, John Snow, 2015/03/20
- [Qemu-devel] [PATCH v4 11/20] qmp: add block-dirty-bitmap-clear, John Snow, 2015/03/20
- [Qemu-devel] [PATCH v4 19/20] iotests: add simple incremental backup case, John Snow, 2015/03/20
- [Qemu-devel] [PATCH v4 16/20] hbitmap: truncate tests, John Snow, 2015/03/20
- [Qemu-devel] [PATCH v4 14/20] block: Ensure consistent bitmap function prototypes, John Snow, 2015/03/20
- [Qemu-devel] [PATCH v4 20/20] iotests: add incremental backup failure recovery test, John Snow, 2015/03/20
- [Qemu-devel] [PATCH v4 12/20] qmp: Add dirty bitmap status field in query-block,
John Snow <=
- Re: [Qemu-devel] [PATCH v4 00/20] block: transactionless incremental backup series, Max Reitz, 2015/03/20