qemu-img: fix incorrect error message
PATCH 1/1 qemu-img: fix incorrect error message
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.
Signature · 1 line
Stuart Brady
Index: qemu-img.c
===================================================================
RCS file: /sources/qemu/qemu/qemu-img.c,v
retrieving revision 1.16
qemu-img.c +1 -1
@@ -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)