yeahuh / rpms / qemu-kvm

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