[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/10] qapi/block-core: turn BlockJobInfo into a union
From: |
Fiona Ebner |
Subject: |
[PATCH v2 07/10] qapi/block-core: turn BlockJobInfo into a union |
Date: |
Mon, 9 Oct 2023 11:46:16 +0200 |
In preparation to additionally return job-type-specific information.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
No changes in v2.
qapi/block-core.json | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index a19718a69f..950542b735 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1395,13 +1395,15 @@
#
# Since: 1.1
##
-{ 'struct': 'BlockJobInfo',
- 'data': {'type': 'JobType', 'device': 'str', 'len': 'int',
+{ 'union': 'BlockJobInfo',
+ 'base': {'type': 'JobType', 'device': 'str', 'len': 'int',
'offset': 'int', 'busy': 'bool', 'paused': 'bool', 'speed': 'int',
'io-status': 'BlockDeviceIoStatus', 'ready': 'bool',
'status': 'JobStatus',
'auto-finalize': 'bool', 'auto-dismiss': 'bool',
- '*error': 'str' } }
+ '*error': 'str' },
+ 'discriminator': 'type',
+ 'data': {} }
##
# @query-block-jobs:
--
2.39.2
- [PATCH v2 01/10] blockjob: introduce block-job-change QMP command, (continued)
- [PATCH v2 01/10] blockjob: introduce block-job-change QMP command, Fiona Ebner, 2023/10/09
- [PATCH v2 03/10] block/mirror: move dirty bitmap to filter, Fiona Ebner, 2023/10/09
- [PATCH v2 04/10] block/mirror: determine copy_to_target only once, Fiona Ebner, 2023/10/09
- [PATCH v2 09/10] mirror: return mirror-specific information upon query, Fiona Ebner, 2023/10/09
- [PATCH v2 08/10] blockjob: query driver-specific info via a new 'query' driver method, Fiona Ebner, 2023/10/09
- [PATCH v2 07/10] qapi/block-core: turn BlockJobInfo into a union,
Fiona Ebner <=
- [PATCH v2 05/10] mirror: implement mirror_change method, Fiona Ebner, 2023/10/09
- [PATCH v2 10/10] iotests: adapt test output for new mirror query property, Fiona Ebner, 2023/10/09
- [PATCH v2 06/10] qapi/block-core: use JobType for BlockJobInfo's type, Fiona Ebner, 2023/10/09
- Re: [PATCH v2 00/10] mirror: allow switching from background to active mode, Vladimir Sementsov-Ogievskiy, 2023/10/10