From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9aAT-0005Mq-EQ for qemu-devel@nongnu.org; Wed, 14 Aug 2013 08:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9aAK-0001Po-ET for qemu-devel@nongnu.org; Wed, 14 Aug 2013 08:27:13 -0400 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:45489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9aAJ-0001Os-UA for qemu-devel@nongnu.org; Wed, 14 Aug 2013 08:27:04 -0400 Received: from /spool/local by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Aug 2013 17:51:10 +0530 From: "M. Mohan Kumar" Date: Wed, 14 Aug 2013 17:56:41 +0530 Message-Id: <1376483201-13466-1-git-send-email-mohan@in.ibm.com> Subject: [Qemu-devel] [PATCH 1/1] block: Dont ignore previously set bdrv_flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , qemu-trivial@nongnu.org Cc: "M. Mohan Kumar" From: "M. Mohan Kumar" bdrv_flags is set by bdrv_parse_discard_flags(), but later it is reset to zero. Signed-off-by: M. Mohan Kumar --- blockdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index e174b7d..bc7016a 100644 --- a/blockdev.c +++ b/blockdev.c @@ -454,7 +454,6 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts, } } - bdrv_flags = 0; if (qemu_opt_get_bool(opts, "cache.writeback", true)) { bdrv_flags |= BDRV_O_CACHE_WB; } -- 1.7.11.7