From patchwork Wed Aug 14 12:26:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohan Kumar M X-Patchwork-Id: 267113 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (unknown [IPv6:2001:4830:134:3::12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6A3A62C01B9 for ; Wed, 14 Aug 2013 22:27:38 +1000 (EST) Received: from localhost ([::1]:51405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9aAp-0005Ny-SX for incoming@patchwork.ozlabs.org; Wed, 14 Aug 2013 08:27:35 -0400 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 Received: from d28dlp01.in.ibm.com (9.184.220.126) by e28smtp09.in.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Aug 2013 17:51:07 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 5F8F0E0053; Wed, 14 Aug 2013 17:57:13 +0530 (IST) Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r7ECSEsC35258576; Wed, 14 Aug 2013 17:58:15 +0530 Received: from d28av04.in.ibm.com (localhost [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r7ECQn4o013226; Wed, 14 Aug 2013 17:56:49 +0530 Received: from explorer.in.ibm.com ([9.77.123.113]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r7ECQi37012922; Wed, 14 Aug 2013 17:56:46 +0530 From: "M. Mohan Kumar" To: qemu-devel , qemu-trivial@nongnu.org Date: Wed, 14 Aug 2013 17:56:41 +0530 Message-Id: <1376483201-13466-1-git-send-email-mohan@in.ibm.com> X-Mailer: git-send-email 1.7.11.7 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13081412-2674-0000-0000-00000A3BED40 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.9 Cc: "M. Mohan Kumar" Subject: [Qemu-devel] [PATCH 1/1] block: Dont ignore previously set bdrv_flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Acked-by: Stefan Hajnoczi --- 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; }