From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEK0R-0000qT-9y for qemu-devel@nongnu.org; Fri, 14 Feb 2014 09:44:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEK0L-00009I-6c for qemu-devel@nongnu.org; Fri, 14 Feb 2014 09:44:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEK0K-00008U-TI for qemu-devel@nongnu.org; Fri, 14 Feb 2014 09:44:37 -0500 Date: Fri, 14 Feb 2014 09:44:30 -0500 From: Jeff Cody Message-ID: <20140214144430.GA17514@localhost.localdomain> References: <925f4c0a62291c070991d1b3e75a770de986a686.1391541706.git.jcody@redhat.com> <20140214141241.GE17391@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140214141241.GE17391@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/2] block: gluster - code movements, state storage changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, bharata@linux.vnet.ibm.com On Fri, Feb 14, 2014 at 03:12:41PM +0100, Stefan Hajnoczi wrote: > On Tue, Feb 04, 2014 at 02:26:58PM -0500, Jeff Cody wrote: > > diff --git a/block/gluster.c b/block/gluster.c > > index a009b15..79af3fd 100644 > > --- a/block/gluster.c > > +++ b/block/gluster.c > > @@ -30,6 +30,8 @@ typedef struct GlusterAIOCB { > > typedef struct BDRVGlusterState { > > struct glfs *glfs; > > struct glfs_fd *fd; > > + int open_flags; > > Is this field used? I only see stores to this field but no loads. > > Seems unnecessary since the block layer already provides us with QEMU > BDRV_* flags and qemu_gluster_parse_flags() can be used to produce POSIX > open(2) flags from them. It is not currently used, I cached it for later use, but never used it. I will purge it in a v2 (same thing with the sister variable in the reopen state struct in patch 2).