mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
qapi: Introduce enum BlockJobType
This will replace the open coded block job type string for mirror, commit and backup. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
3fc4b10af0
commit
2cb5b22286
@ -1365,6 +1365,24 @@
|
||||
{ 'enum': 'MirrorSyncMode',
|
||||
'data': ['top', 'full', 'none'] }
|
||||
|
||||
##
|
||||
# @BlockJobType:
|
||||
#
|
||||
# Type of a block job.
|
||||
#
|
||||
# @commit: block commit job type, see "block-commit"
|
||||
#
|
||||
# @stream: block stream job type, see "block-stream"
|
||||
#
|
||||
# @mirror: drive mirror job type, see "drive-mirror"
|
||||
#
|
||||
# @backup: drive backup job type, see "drive-backup"
|
||||
#
|
||||
# Since: 1.7
|
||||
##
|
||||
{ 'enum': 'BlockJobType',
|
||||
'data': ['commit', 'stream', 'mirror', 'backup'] }
|
||||
|
||||
##
|
||||
# @BlockJobInfo:
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user