From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlLTx-0001pV-W5 for qemu-devel@nongnu.org; Sun, 01 Jul 2012 10:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlLTw-0007B7-Ca for qemu-devel@nongnu.org; Sun, 01 Jul 2012 10:50:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlLTw-0007Ar-4f for qemu-devel@nongnu.org; Sun, 01 Jul 2012 10:50:36 -0400 Message-ID: <4FF063B5.3090309@redhat.com> Date: Sun, 01 Jul 2012 16:50:29 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20120611141806.GA2737@in.ibm.com> <20120611142144.GD2737@in.ibm.com> <20120619093023.GC27963@in.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 3/3] block: gluster as block backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Vijay Bellur , Amar Tumballi , qemu-devel@nongnu.org, bharata@linux.vnet.ibm.com Il 19/06/2012 13:05, Stefan Hajnoczi ha scritto: >> > I picked up this logic from block/raw-posix.c:raw_open_common(). Don't see >> > anything related to bs->enable_write_cache there. Will find out more about >> > bs->enable_write_cache. > If you fetch the latest qemu.git and check bdrv_open_common() there is > new code that stashes BDRV_O_CACHE_WB in bs->enable_write_cache and > then opens the actual block driver with BDRV_O_CACHE_WB set. You can > use bdrv_enable_write_cache() to test the original flag. Yes, but you shouldn't do this when opening. You should always open for writeback. Paolo