Hi,
qemu-img convert produces an incorrect error message if an unknown
file format is requested for the output image.
"qemu-img convert -f raw in.img -O snafu out.img" produces:
qemu-img: Unknown file format 'raw'
The attached patch fixes this.
--
Stuart Brady
Index: qemu-img.c
===================================================================
RCS file: /sources/qemu/qemu/qemu-img.c,v
retrieving revision 1.16
diff -u -r1.16 qemu-img.c
--- qemu-img.c 5 Feb 2007 20:21:32 -0000 1.16
+++ qemu-img.c 8 Feb 2007 19:31:54 -0000
@@ -457,7 +457,7 @@
drv = bdrv_find_format(out_fmt);
if (!drv)
- error("Unknown file format '%s'", fmt);
+ error("Unknown file format '%s'", out_fmt);
if (compress && drv != &bdrv_qcow && drv != &bdrv_qcow2)
error("Compression not supported for this file format");
if (encrypt && drv != &bdrv_qcow && drv != &bdrv_qcow2)
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel