From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBcLD-0003ES-FF for qemu-devel@nongnu.org; Thu, 06 Feb 2014 22:43:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBcL3-0000hO-QD for qemu-devel@nongnu.org; Thu, 06 Feb 2014 22:42:59 -0500 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:44821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBcL3-0000aL-5m for qemu-devel@nongnu.org; Thu, 06 Feb 2014 22:42:49 -0500 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Feb 2014 09:12:44 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 22FC71258053 for ; Fri, 7 Feb 2014 09:14:32 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s173gVfK3473674 for ; Fri, 7 Feb 2014 09:12:32 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s173ge6f017768 for ; Fri, 7 Feb 2014 09:12:40 +0530 Date: Fri, 7 Feb 2014 09:14:50 +0530 From: Bharata B Rao Message-ID: <20140207034450.GB3787@in.ibm.com> References: <925f4c0a62291c070991d1b3e75a770de986a686.1391541706.git.jcody@redhat.com> <20140205192535.GA3440@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140205192535.GA3440@irqsave.net> Subject: Re: [Qemu-devel] [PATCH 1/2] block: gluster - code movements, state storage changes Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, Jeff Cody , qemu-devel@nongnu.org, stefanha@redhat.com On Wed, Feb 05, 2014 at 08:25:36PM +0100, Benoît Canet wrote: > Le Tuesday 04 Feb 2014 à 14:26:58 (-0500), Jeff Cody a écrit : > > > > +static void qemu_gluster_parse_flags(int bdrv_flags, int *open_flags) > > +{ > > + assert(open_flags != NULL); > > + > > + *open_flags |= O_BINARY; > > + > > + if (bdrv_flags & BDRV_O_RDWR) { > > + *open_flags |= O_RDWR; > > + } else { > > + *open_flags |= O_RDONLY; > > + } > > + > > + if ((bdrv_flags & BDRV_O_NOCACHE)) { > > + *open_flags |= O_DIRECT; > > + } > > +} > > I saw the enable-O_SYNC option here. > http://www.gluster.org/community/documentation/index.php/Translators/performance > Why the gluster driver does not allow to enable O_SYNC ? I am not aware of any option in QEMU (like cache= etc) that will force block driver (like gluster) to use O_SYNC. Do other drivers use O_SYNC ? Turning off write-behind for the entire gluster volume isn't an option ? Regards, Bharata.