WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Zhang, Yang" <yang.zhang@xxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel][PATCH]qemu:fix up qcow2 can not boot up
From: "Zhang, Yang" <yang.zhang@xxxxxxxxx>
Date: Sat, 18 Apr 2009 17:55:50 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 18 Apr 2009 02:58:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <10C63FAD690C13458F0B32BCED571F1412A22CEB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <10C63FAD690C13458F0B32BCED571F1412A22CEB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnACV0ZPY2dXt+CTomtHYn0sKZHmAAAfoug
Thread-topic: [Xen-devel][PATCH]qemu:fix up qcow2 can not boot up
Hi
      The previous patch is wrong,please drop it. This is the right one. 

The follow code is deleted by the merge from stable_0_10,
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..36f5eb9 100644
--- a/block.c
+++ b/block.c
@@ -405,6 +405,8 @@ 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);
+        if (!drv)
+            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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>