]> Git Repo - qemu.git/commitdiff
block: Add BlockOpType enum
authorFam Zheng <[email protected]>
Fri, 23 May 2014 13:29:41 +0000 (21:29 +0800)
committerStefan Hajnoczi <[email protected]>
Wed, 28 May 2014 12:28:46 +0000 (14:28 +0200)
This adds the enum of all the operations that can be taken on a block
device.

Signed-off-by: Fam Zheng <[email protected]>
Reviewed-by: Benoit Canet <[email protected]>
Reviewed-by: Jeff Cody <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
include/block/block.h

index 59be83f3c2eb05c60860a077e55c4c99a99ea6bd..cc4cc160ec71a309418e74eb213cddb15ff0ee37 100644 (file)
@@ -162,6 +162,25 @@ typedef struct BDRVReopenState {
     void *opaque;
 } BDRVReopenState;
 
+/*
+ * Block operation types
+ */
+typedef enum BlockOpType {
+    BLOCK_OP_TYPE_BACKUP_SOURCE,
+    BLOCK_OP_TYPE_BACKUP_TARGET,
+    BLOCK_OP_TYPE_CHANGE,
+    BLOCK_OP_TYPE_COMMIT,
+    BLOCK_OP_TYPE_DATAPLANE,
+    BLOCK_OP_TYPE_DRIVE_DEL,
+    BLOCK_OP_TYPE_EJECT,
+    BLOCK_OP_TYPE_EXTERNAL_SNAPSHOT,
+    BLOCK_OP_TYPE_INTERNAL_SNAPSHOT,
+    BLOCK_OP_TYPE_INTERNAL_SNAPSHOT_DELETE,
+    BLOCK_OP_TYPE_MIRROR,
+    BLOCK_OP_TYPE_RESIZE,
+    BLOCK_OP_TYPE_STREAM,
+    BLOCK_OP_TYPE_MAX,
+} BlockOpType;
 
 void bdrv_iostatus_enable(BlockDriverState *bs);
 void bdrv_iostatus_reset(BlockDriverState *bs);
This page took 0.023723 seconds and 4 git commands to generate.