All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]ioemu:fix up error when using qemu-img-xen to create img
@ 2009-04-21  1:24 Zhang, Yang
  2009-04-27  3:13 ` Li, Xin
  0 siblings, 1 reply; 10+ messages in thread
From: Zhang, Yang @ 2009-04-21  1:24 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

If find_protocol() can not find the the drv. The caller should give
a default value.

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

diff --git a/block.c b/block.c
index 8a0e8b2..3e84707 100644
--- a/block.c
+++ b/block.c
@@ -306,6 +306,8 @@ static BlockDriver *find_image_format(const char *filename)
     /* no need to test disk image format if the filename told us */
     if (drv != NULL)
         return drv;
+    else 
+        drv = &bdrv_raw;
 
     ret = bdrv_file_open(&bs, filename, BDRV_O_RDONLY);
     if (ret < 0)

[-- Attachment #2: fix_qemu-img-xen_can_not_create_img.patch --]
[-- Type: application/octet-stream, Size: 603 bytes --]

fix up error when using qemu-img-xen to create img

If find_protocol() can not find the the drv. The caller should give
a default value.

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

diff --git a/block.c b/block.c
index 8a0e8b2..3e84707 100644
--- a/block.c
+++ b/block.c
@@ -306,6 +306,8 @@ static BlockDriver *find_image_format(const char *filename)
     /* no need to test disk image format if the filename told us */
     if (drv != NULL)
         return drv;
+    else 
+        drv = &bdrv_raw;
 
     ret = bdrv_file_open(&bs, filename, BDRV_O_RDONLY);
     if (ret < 0)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-05-05 17:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21  1:24 [PATCH]ioemu:fix up error when using qemu-img-xen to create img Zhang, Yang
2009-04-27  3:13 ` Li, Xin
2009-04-29 15:35   ` Ian Jackson
2009-05-01  9:38     ` Ian Jackson
2009-05-04 12:51       ` Xu, Dongxiao
2009-05-05  3:15         ` Xu, Dongxiao
2009-05-05 14:17         ` Ian Jackson
2009-05-05 14:28           ` Daniel P. Berrange
2009-05-05 17:19             ` Ian Jackson
2009-05-01  3:04   ` Li, Xin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.