aboutsummaryrefslogtreecommitdiff
path: root/qapi/block-core.json
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2023-10-31 14:54:27 +0100
committerKevin Wolf <kwolf@redhat.com>2023-10-31 18:20:29 +0100
commitd67c54d05fe05cf1b6a3b2cf36cc3832d2a0ce05 (patch)
treec41394aa5887a727aecec404336d1c819ae6cc12 /qapi/block-core.json
parent2d400d15a02dca3b7b90761b2f0bb2322e99e11a (diff)
downloadqemu-d67c54d05fe05cf1b6a3b2cf36cc3832d2a0ce05.zip
qemu-d67c54d05fe05cf1b6a3b2cf36cc3832d2a0ce05.tar.gz
qemu-d67c54d05fe05cf1b6a3b2cf36cc3832d2a0ce05.tar.bz2
qapi/block-core: use JobType for BlockJobInfo's type
In preparation to turn BlockJobInfo into a union with @type as the discriminator. That requires it to be an enum. Even without that requirement, it's nicer to have an enum instead of a str here. No functional change is intended. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20231031135431.393137-7-f.ebner@proxmox.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi/block-core.json')
-rw-r--r--qapi/block-core.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 6369207..9d03210 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1396,7 +1396,7 @@
# Since: 1.1
##
{ 'struct': 'BlockJobInfo',
- 'data': {'type': 'str', 'device': 'str', 'len': 'int',
+ 'data': {'type': 'JobType', 'device': 'str', 'len': 'int',
'offset': 'int', 'busy': 'bool', 'paused': 'bool', 'speed': 'int',
'io-status': 'BlockDeviceIoStatus', 'ready': 'bool',
'status': 'JobStatus',