* [Qemu-devel] qemu-img convert does not handle -O correctly
@ 2008-02-03 15:13 Andreas Färber
2008-02-03 23:41 ` Dean Payne
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Färber @ 2008-02-03 15:13 UTC (permalink / raw)
To: qemu-devel
Hello,
When running `qemu-img convert haikuware.vmdk -O qcow2
haikuware.qcow2` on OSX, it complains it cannot open '-O'.
According to `qemu-img convert --help` my syntax is correct.
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qemu-img convert does not handle -O correctly
2008-02-03 15:13 [Qemu-devel] qemu-img convert does not handle -O correctly Andreas Färber
@ 2008-02-03 23:41 ` Dean Payne
2008-02-04 22:31 ` [PATCH] " Andreas Färber
0 siblings, 1 reply; 3+ messages in thread
From: Dean Payne @ 2008-02-03 23:41 UTC (permalink / raw)
To: qemu-devel
Andreas Färber wrote:
> Hello,
>
> When running `qemu-img convert haikuware.vmdk -O qcow2
> haikuware.qcow2` on OSX, it complains it cannot open '-O'.
>
> According to `qemu-img convert --help` my syntax is correct.
>
> Andreas
>
>
I had similar problems and needed to change the order of parameters on
the command line.
For your statement try...
qemu-img convert -f vmdk -O qcow2 haikuware.vmdk haikuware.qcow2
... as -f and -O come first before filenames
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Re: [Qemu-devel] qemu-img convert does not handle -O correctly
2008-02-03 23:41 ` Dean Payne
@ 2008-02-04 22:31 ` Andreas Färber
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Färber @ 2008-02-04 22:31 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
Am 04.02.2008 um 00:41 schrieb Dean Payne:
>
> Andreas Färber wrote:
>> Hello,
>>
>> When running `qemu-img convert haikuware.vmdk -O qcow2
>> haikuware.qcow2` on OSX, it complains it cannot open '-O'.
>>
>> According to `qemu-img convert --help` my syntax is correct.
>>
>> Andreas
>>
>>
>
> I had similar problems and needed to change the order of parameters
> on the command line.
>
> For your statement try...
>
> qemu-img convert -f vmdk -O qcow2 haikuware.vmdk haikuware.qcow2
>
> ... as -f and -O come first before filenames
Thanks, that did work. Attached is a patch to fix the usage output.
Andreas
[-- Attachment #2: qemu-img-O.diff --]
[-- Type: application/octet-stream, Size: 747 bytes --]
Index: qemu-img.c
===================================================================
RCS file: /sources/qemu/qemu/qemu-img.c,v
retrieving revision 1.28
diff -u -r1.28 qemu-img.c
--- qemu-img.c 6 Jan 2008 17:21:48 -0000 1.28
+++ qemu-img.c 4 Feb 2008 22:27:13 -0000
@@ -90,7 +90,7 @@
"Command syntax:\n"
" create [-e] [-6] [-b base_image] [-f fmt] filename [size]\n"
" commit [-f fmt] filename\n"
- " convert [-c] [-e] [-6] [-f fmt] filename [filename2 [...]] [-O output_fmt] output_filename\n"
+ " convert [-c] [-e] [-6] [-f fmt] [-O output_fmt] filename [filename2 [...]] output_filename\n"
" info [-f fmt] filename\n"
"\n"
"Command parameters:\n"
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-04 22:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-03 15:13 [Qemu-devel] qemu-img convert does not handle -O correctly Andreas Färber
2008-02-03 23:41 ` Dean Payne
2008-02-04 22:31 ` [PATCH] " Andreas Färber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).