Received: from [140.186.70.92] (port=53023 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNePW-0006XX-DY for qemu-devel@nongnu.org; Tue, 30 Nov 2010 23:35:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNRuk-0005Bf-Rc for qemu-devel@nongnu.org; Tue, 30 Nov 2010 10:14:43 -0500 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:55361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNRuk-0004i7-JR for qemu-devel@nongnu.org; Tue, 30 Nov 2010 10:14:42 -0500 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id oAUFERla030765 for ; Tue, 30 Nov 2010 15:14:27 GMT Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAUFEQlK3653646 for ; Tue, 30 Nov 2010 15:14:26 GMT Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oAUFERW1013665 for ; Tue, 30 Nov 2010 08:14:27 -0700 From: Stefan Hajnoczi Date: Tue, 30 Nov 2010 15:14:13 +0000 Message-Id: <1291130056-32441-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/3] block: Fix the use of protocols in backing files List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori Anthony sent out a patch to make backing filenames that contain a protocol work. An issue with bdrv_find_protocol() was identified because its interface makes it impossible to distinguish between filenames that start with "file:" and those that have no ":" at all. This patch series solves the issue by introducing a path_has_protocol() function to test whether or not a filename contains a protocol. I tried Kevin's suggestion of adding a new bdrv_find_protocol()-like interface with more specific error returns but found that option more complicated than path_has_protocol(). For details on Anthony's patch see http://patchwork.ozlabs.org/patch/69384/.