This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel][PATCH]qemu:fix up qcow2 can not boot up

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: [Xen-devel][PATCH]qemu:fix up qcow2 can not boot up
From: "Zhang, Yang" <yang.zhang@xxxxxxxxx>
Date: Sat, 18 Apr 2009 17:38:00 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 18 Apr 2009 02:40:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnACV0ZPY2dXt+CTomtHYn0sKZHmA==
Thread-topic: [Xen-devel][PATCH]qemu:fix up qcow2 can not boot up
The follow code is deleted by the merge from stable_0_10, and this will cause 
qcow2 cannot boot up.

Signed-off-by: Yang Zhang <yang.zhang@xxxxxxxxx>

diff --git a/block.c b/block.c
index 8a0e8b2..d3a7b9b 100644
--- a/block.c
+++ b/block.c
@@ -405,6 +405,7 @@ int bdrv_open2(BlockDriverState *bs, const char *filename, 
int flags,
     pstrcpy(bs->filename, sizeof(bs->filename), filename);
     if (flags & BDRV_O_FILE) {
         drv = find_protocol(filename);
+        drv = &bdrv_raw;
     } else if (!drv) {
         drv = find_image_format(filename);

Attachment: fix_up_qcow2_cannot_boot.patch
Description: fix_up_qcow2_cannot_boot.patch

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>