From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEcq5-0005jp-1k for qemu-devel@nongnu.org; Thu, 20 Sep 2012 05:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEcpy-0007PF-BF for qemu-devel@nongnu.org; Thu, 20 Sep 2012 05:14:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEcpy-0007PB-3F for qemu-devel@nongnu.org; Thu, 20 Sep 2012 05:14:22 -0400 Message-ID: <505ADE65.7090802@redhat.com> Date: Thu, 20 Sep 2012 11:14:13 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20120917152149.GB6879@in.ibm.com> <20120917152620.GG6879@in.ibm.com> <50587ED6.9040504@redhat.com> <20120920064114.GD5873@in.ibm.com> <505ACB62.7020409@redhat.com> <505AD1D1.70604@redhat.com> <20120920091214.GE5873@in.ibm.com> In-Reply-To: <20120920091214.GE5873@in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 5/5] block: Support GlusterFS as a QEMU block backend. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bharata@linux.vnet.ibm.com Cc: Kevin Wolf , Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Amar Tumballi , qemu-devel@nongnu.org, Markus Armbruster , Blue Swirl , Avi Kivity Il 20/09/2012 11:12, Bharata B Rao ha scritto: >> > Perhaps it would be cleaner to make qemu_gluster_parseuri and >> > parse_gluster_spec accept a const char *. You can replace strtok_r + >> > g_strdup with strspn/strcspn followed by g_strndup. > I feel the current approach of using the combination of strncmp, strtok_r > and g_strdup should be good enough. > > But if you feel and insist that the right way to do this is to use the > combination of strstart, strspn and g_strndup, I could give it a try. I won't insist on anything :) but please check the delimiters as mentioned in the other message. Paolo