From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35863 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQhZe-0000Fa-6d for qemu-devel@nongnu.org; Thu, 09 Dec 2010 09:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQhZd-0005hC-7I for qemu-devel@nongnu.org; Thu, 09 Dec 2010 09:34:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQhZc-0005gZ-K1 for qemu-devel@nongnu.org; Thu, 09 Dec 2010 09:34:21 -0500 Message-ID: <4D00E92F.30009@redhat.com> Date: Thu, 09 Dec 2010 15:35:27 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1291895580-2850-1-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1291895580-2850-1-git-send-email-stefanha@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH v2] block: Introduce path_has_protocol() function List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org Am 09.12.2010 12:53, schrieb Stefan Hajnoczi: > The bdrv_find_protocol() function returns NULL if an unknown protocol > name is given. It returns the "file" protocol when the filename > contains no protocol at all. This makes it difficult to distinguish > between paths which contain a protocol and those which do not. > > Factor out a helper function that tests whether or not a filename has a > protocol. The next patch makes use of this function. > > Signed-off-by: Stefan Hajnoczi > --- > Sorry for this oversight, Windows breakage fixed. > > v2: > * Define Windows drive functions before path_has_protocol() Thanks, applied to the block branch. Kevin