yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-block-Dont-ignore-previously-set-bdrv_flags.patch

9ae3a8
From 914cc2a5576cd45afa5f6d6f5327da9cc4d3bbac Mon Sep 17 00:00:00 2001
9ae3a8
Message-Id: <914cc2a5576cd45afa5f6d6f5327da9cc4d3bbac.1387276076.git.minovotn@redhat.com>
9ae3a8
In-Reply-To: <e610718166120379517e80d1a7aa12d60294209b.1387276076.git.minovotn@redhat.com>
9ae3a8
References: <e610718166120379517e80d1a7aa12d60294209b.1387276076.git.minovotn@redhat.com>
9ae3a8
From: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Date: Tue, 10 Dec 2013 14:33:38 +0100
9ae3a8
Subject: [PATCH 08/16] block: Dont ignore previously set bdrv_flags
9ae3a8
9ae3a8
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Message-id: <1386686018-11942-1-git-send-email-pbonzini@redhat.com>
9ae3a8
Patchwork-id: 56109
9ae3a8
O-Subject: [RHEL 7.0 qemu-kvm PATCH] block: Dont ignore previously set bdrv_flags
9ae3a8
Bugzilla: 1039501
9ae3a8
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
9ae3a8
From: "M. Mohan Kumar" <mohan@in.ibm.com>
9ae3a8
9ae3a8
Bugzilla: 1039501
9ae3a8
9ae3a8
Brew build: 6700417
9ae3a8
9ae3a8
bdrv_flags is set by bdrv_parse_discard_flags(), but later it is reset
9ae3a8
to zero.
9ae3a8
9ae3a8
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
9ae3a8
Message-id: 1376483201-13466-1-git-send-email-mohan@in.ibm.com
9ae3a8
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
9ae3a8
(cherry picked from commit 8b7a5415f9297c1fbae5bff28dcb059d50c1b045)
9ae3a8
---
9ae3a8
 blockdev.c | 1 -
9ae3a8
 1 file changed, 1 deletion(-)
9ae3a8
9ae3a8
Signed-off-by: Michal Novotny <minovotn@redhat.com>
9ae3a8
---
9ae3a8
 blockdev.c | 1 -
9ae3a8
 1 file changed, 1 deletion(-)
9ae3a8
9ae3a8
diff --git a/blockdev.c b/blockdev.c
9ae3a8
index a9c5d32..cdd453a 100644
9ae3a8
--- a/blockdev.c
9ae3a8
+++ b/blockdev.c
9ae3a8
@@ -384,7 +384,6 @@ static DriveInfo *blockdev_init(QDict *bs_opts,
9ae3a8
         }
9ae3a8
     }
9ae3a8
 
9ae3a8
-    bdrv_flags = 0;
9ae3a8
     if (qemu_opt_get_bool(opts, "cache.writeback", true)) {
9ae3a8
         bdrv_flags |= BDRV_O_CACHE_WB;
9ae3a8
     }
9ae3a8
-- 
9ae3a8
1.7.11.7
9ae3a8