Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfaVH-0003ZF-9e for qemu-devel@nongnu.org; Tue, 16 Sep 2008 09:22:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfaVF-0003Yo-Ie for qemu-devel@nongnu.org; Tue, 16 Sep 2008 09:22:02 -0400 Received: from [199.232.76.173] (port=40065 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfaVF-0003Yd-C4 for qemu-devel@nongnu.org; Tue, 16 Sep 2008 09:22:01 -0400 Received: from savannah.gnu.org ([199.232.41.3]:53234 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfaVE-0006my-J9 for qemu-devel@nongnu.org; Tue, 16 Sep 2008 09:22:01 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KfaVD-0005tq-Rj for qemu-devel@nongnu.org; Tue, 16 Sep 2008 13:21:59 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KfaVD-0005tm-HV for qemu-devel@nongnu.org; Tue, 16 Sep 2008 13:21:59 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Tue, 16 Sep 2008 13:21:59 +0000 Subject: [Qemu-devel] [5233] block-raw is not a protocol Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5233 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5233 Author: aliguori Date: 2008-09-16 13:21:58 +0000 (Tue, 16 Sep 2008) Log Message: ----------- block-raw is not a protocol The protocol_name "file" was added to the block driver when async IO was introduced. This can be used to select that a file is treated as a raw device instead of probing for the type. However, protocols are not subject to path interpretation which cases qcow2 images with raw base images to not function is the path was specified relatively. The fix is simply to remove the protocol_name from the raw block driver. The proper way to force the use of a raw block format is to use the format= option with -drive. Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/block-raw-posix.c trunk/block-raw-win32.c Modified: trunk/block-raw-posix.c =================================================================== --- trunk/block-raw-posix.c 2008-09-15 22:26:35 UTC (rev 5232) +++ trunk/block-raw-posix.c 2008-09-16 13:21:58 UTC (rev 5233) @@ -846,7 +846,6 @@ .bdrv_aio_cancel = raw_aio_cancel, .aiocb_size = sizeof(RawAIOCB), #endif - .protocol_name = "file", .bdrv_pread = raw_pread, .bdrv_pwrite = raw_pwrite, .bdrv_truncate = raw_truncate, Modified: trunk/block-raw-win32.c =================================================================== --- trunk/block-raw-win32.c 2008-09-15 22:26:35 UTC (rev 5232) +++ trunk/block-raw-win32.c 2008-09-16 13:21:58 UTC (rev 5233) @@ -369,7 +369,6 @@ .bdrv_aio_cancel = raw_aio_cancel, .aiocb_size = sizeof(RawAIOCB); #endif - .protocol_name = "file", .bdrv_pread = raw_pread, .bdrv_pwrite = raw_pwrite, .bdrv_truncate = raw_truncate,