Received: from eggs.gnu.org ([140.186.70.92]:58084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QovsX-0002cZ-2r for qemu-devel@nongnu.org; Thu, 04 Aug 2011 07:14:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QovsV-0002Ey-Q3 for qemu-devel@nongnu.org; Thu, 04 Aug 2011 07:14:17 -0400 Received: from verein.lst.de ([213.95.11.211]:43735 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QovsV-0002En-KN for qemu-devel@nongnu.org; Thu, 04 Aug 2011 07:14:15 -0400 Date: Thu, 4 Aug 2011 13:14:14 +0200 From: Christoph Hellwig Message-ID: <20110804111414.GA23952@lst.de> References: <1312447594-24046-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1312447594-24046-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v2 1/2] block: set cache mode flags in a single place List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org On Thu, Aug 04, 2011 at 09:46:33AM +0100, Stefan Hajnoczi wrote: > +/** > + * Set open flags for a given cache mode > + * > + * Return 0 on success, -1 if the cache mode was invalid. > + */ > +int bdrv_set_cache_flags(const char *mode, int *flags) I would call this bdrv_parse_cache_flags.