diff options
author | Fam Zheng <famz@redhat.com> | 2013-10-08 17:29:39 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-10-11 10:52:54 +0200 |
commit | 2cb5b22286a7546226d9e9363aaee543fcba6b61 (patch) | |
tree | 37be14a6552ebf285f8c0b6228d0607aaabec4b4 /qapi-schema.json | |
parent | 3fc4b10af09b75a1cb811b61abc9d8c90771dfb2 (diff) |
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>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index 145eca8855..381ffbf932 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1366,6 +1366,24 @@ '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: # # Information about a long-running block device operation. |