Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JM9rL-0003GF-Cg for qemu-devel@nongnu.org; Mon, 04 Feb 2008 17:32:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JM9rK-0003Es-4x for qemu-devel@nongnu.org; Mon, 04 Feb 2008 17:32:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JM9rJ-0003EP-Px for qemu-devel@nongnu.org; Mon, 04 Feb 2008 17:32:13 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JM9rJ-00060z-Mk for qemu-devel@nongnu.org; Mon, 04 Feb 2008 17:32:13 -0500 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 4700BCDBF09A for ; Mon, 4 Feb 2008 23:32:12 +0100 (CET) Received: from [91.18.103.133] (helo=[10.0.1.1]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JM9rH-0006X8-00 for qemu-devel@nongnu.org; Mon, 04 Feb 2008 23:32:12 +0100 Message-Id: <21649B55-36D3-4236-AD6E-BC3547558F78@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <47A65137.8070608@adsl.on.net> Content-Type: multipart/mixed; boundary=Apple-Mail-6-518811271 Mime-Version: 1.0 (Apple Message framework v915) Subject: [PATCH] Re: [Qemu-devel] qemu-img convert does not handle -O correctly Date: Mon, 4 Feb 2008 23:31:50 +0100 References: <47A65137.8070608@adsl.on.net> Sender: andreas.faerber@web.de Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-6-518811271 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Am 04.02.2008 um 00:41 schrieb Dean Payne: > > Andreas F=E4rber wrote: >> Hello, >> >> When running `qemu-img convert haikuware.vmdk -O qcow2 =20 >> 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 =20= > 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 --Apple-Mail-6-518811271 Content-Disposition: attachment; filename=qemu-img-O.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="qemu-img-O.diff" Content-Transfer-Encoding: 7bit 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" --Apple-Mail-6-518811271 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-6-518811271--