Patchwork [2/3] qapi: Introduce enum BlockJobType

login
register
mail settings
Submitter Fam Zheng
Date Oct. 8, 2013, 9:29 a.m.
Message ID <1381224580-14950-3-git-send-email-famz@redhat.com>
Download mbox | patch
Permalink /patch/281379/
State New
Headers show

Comments

Fam Zheng - Oct. 8, 2013, 9:29 a.m.
This will replace the open coded block job type string for mirror,
commit and backup.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 qapi-schema.json | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Patch

diff --git a/qapi-schema.json b/qapi-schema.json
index 145eca8..381ffbf 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.