block: make BdrvRequestFlags public
authorPeter Lieven <pl@kamp.de>
Thu, 24 Oct 2013 10:06:50 +0000 (12:06 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 28 Nov 2013 09:30:51 +0000 (10:30 +0100)
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
include/block/block.h

diff --git a/block.c b/block.c
index 382ea71f4b8c28550d4a798377fd1e6c4bae04ae..3dc6c12c9d1680b580591daf305eac4a96d1a69d 100644 (file)
--- a/block.c
+++ b/block.c
 
 #define NOT_DONE 0x7fffffff /* used while emulated sync operation in progress */
 
-typedef enum {
-    BDRV_REQ_COPY_ON_READ = 0x1,
-    BDRV_REQ_ZERO_WRITE   = 0x2,
-} BdrvRequestFlags;
-
 static void bdrv_dev_change_media_cb(BlockDriverState *bs, bool load);
 static BlockDriverAIOCB *bdrv_aio_readv_em(BlockDriverState *bs,
         int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
index 3560deb8837bb7d83b0e8bc500e7e27852f0ceca..ba2082c0c65b3a8ec69cc728f2010864ab676772 100644 (file)
@@ -62,6 +62,11 @@ typedef struct BlockDevOps {
     void (*resize_cb)(void *opaque);
 } BlockDevOps;
 
+typedef enum {
+    BDRV_REQ_COPY_ON_READ = 0x1,
+    BDRV_REQ_ZERO_WRITE   = 0x2,
+} BdrvRequestFlags;
+
 #define BDRV_O_RDWR        0x0002
 #define BDRV_O_SNAPSHOT    0x0008 /* open the file read only and save writes in a snapshot */
 #define BDRV_O_NOCACHE     0x0020 /* do not use the host page cache */