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