qapi/block-core: turn BlockJobInfo into a union
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> Message-ID: <20231031135431.393137-8-f.ebner@proxmox.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
d67c54d05f
commit
701efc9f2d
@ -1395,13 +1395,15 @@
|
|||||||
#
|
#
|
||||||
# Since: 1.1
|
# Since: 1.1
|
||||||
##
|
##
|
||||||
{ 'struct': 'BlockJobInfo',
|
{ 'union': 'BlockJobInfo',
|
||||||
'data': {'type': 'JobType', 'device': 'str', 'len': 'int',
|
'base': {'type': 'JobType', 'device': 'str', 'len': 'int',
|
||||||
'offset': 'int', 'busy': 'bool', 'paused': 'bool', 'speed': 'int',
|
'offset': 'int', 'busy': 'bool', 'paused': 'bool', 'speed': 'int',
|
||||||
'io-status': 'BlockDeviceIoStatus', 'ready': 'bool',
|
'io-status': 'BlockDeviceIoStatus', 'ready': 'bool',
|
||||||
'status': 'JobStatus',
|
'status': 'JobStatus',
|
||||||
'auto-finalize': 'bool', 'auto-dismiss': 'bool',
|
'auto-finalize': 'bool', 'auto-dismiss': 'bool',
|
||||||
'*error': 'str' } }
|
'*error': 'str' },
|
||||||
|
'discriminator': 'type',
|
||||||
|
'data': {} }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @query-block-jobs:
|
# @query-block-jobs:
|
||||||
|
Loading…
Reference in New Issue
Block a user