yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
0a122b
From ef18859f76a1499b7d6ac1f3994dade1345088f2 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <ef18859f76a1499b7d6ac1f3994dade1345088f2.1389014116.git.minovotn@redhat.com>
0a122b
In-Reply-To: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
References: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
From: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Date: Mon, 9 Dec 2013 14:08:54 +0100
0a122b
Subject: [PATCH 06/50] block: make BdrvRequestFlags public
0a122b
0a122b
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Message-id: <1386598178-11845-9-git-send-email-pbonzini@redhat.com>
0a122b
Patchwork-id: 56045
0a122b
O-Subject: [RHEL 7.0 qemu-kvm PATCH 08/52] block: make BdrvRequestFlags public
0a122b
Bugzilla: 1007815
0a122b
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
0a122b
RH-Acked-by: Fam Zheng <famz@redhat.com>
0a122b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
From: Peter Lieven <pl@kamp.de>
0a122b
0a122b
Reviewed-by: Eric Blake <eblake@redhat.com>
0a122b
Signed-off-by: Peter Lieven <pl@kamp.de>
0a122b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
(cherry picked from commit 6faac15fa80c4c1f813d96afc13bceaa3bc5ffe7)
0a122b
---
0a122b
 block.c               | 5 -----
0a122b
 include/block/block.h | 5 +++++
0a122b
 2 files changed, 5 insertions(+), 5 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 block.c               | 5 -----
0a122b
 include/block/block.h | 5 +++++
0a122b
 2 files changed, 5 insertions(+), 5 deletions(-)
0a122b
0a122b
diff --git a/block.c b/block.c
0a122b
index 02994ec..b7ca799 100644
0a122b
--- a/block.c
0a122b
+++ b/block.c
0a122b
@@ -51,11 +51,6 @@
0a122b
 
0a122b
 #define NOT_DONE 0x7fffffff /* used while emulated sync operation in progress */
0a122b
 
0a122b
-typedef enum {
0a122b
-    BDRV_REQ_COPY_ON_READ = 0x1,
0a122b
-    BDRV_REQ_ZERO_WRITE   = 0x2,
0a122b
-} BdrvRequestFlags;
0a122b
-
0a122b
 static void bdrv_dev_change_media_cb(BlockDriverState *bs, bool load);
0a122b
 static BlockDriverAIOCB *bdrv_aio_readv_em(BlockDriverState *bs,
0a122b
         int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
0a122b
diff --git a/include/block/block.h b/include/block/block.h
0a122b
index 15ffbd2..ce6e897 100644
0a122b
--- a/include/block/block.h
0a122b
+++ b/include/block/block.h
0a122b
@@ -62,6 +62,11 @@ typedef struct BlockDevOps {
0a122b
     void (*resize_cb)(void *opaque);
0a122b
 } BlockDevOps;
0a122b
 
0a122b
+typedef enum {
0a122b
+    BDRV_REQ_COPY_ON_READ = 0x1,
0a122b
+    BDRV_REQ_ZERO_WRITE   = 0x2,
0a122b
+} BdrvRequestFlags;
0a122b
+
0a122b
 #define BDRV_O_RDWR        0x0002
0a122b
 #define BDRV_O_SNAPSHOT    0x0008 /* open the file read only and save writes in a snapshot */
0a122b
 #define BDRV_O_NOCACHE     0x0020 /* do not use the host page cache */
0a122b
-- 
0a122b
1.7.11.7
0a122b