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