[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.