Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCa2a-0001KD-1Q for qemu-devel@nongnu.org; Wed, 09 Jan 2008 07:28:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCa2Q-0001F0-TP for qemu-devel@nongnu.org; Wed, 09 Jan 2008 07:28:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCa2Q-0001Es-Kn for qemu-devel@nongnu.org; Wed, 09 Jan 2008 07:28:06 -0500 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JCa2N-0008OF-NQ for qemu-devel@nongnu.org; Wed, 09 Jan 2008 07:28:06 -0500 Date: Wed, 9 Jan 2008 12:27:30 +0000 (GMT) From: Johannes Schindelin Subject: Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows In-Reply-To: <1199880481.4337.31.camel@frecb07144> Message-ID: References: <1199871092.4337.4.camel@frecb07144> <1199873069.4337.20.camel@frecb07144> <1199880481.4337.31.camel@frecb07144> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: =?ISO-8859-15?Q?Herv=E9_Poussineau?= , qemu-devel@nongnu.org Hi, On Wed, 9 Jan 2008, Laurent Vivier wrote: > but "-hda" is an alias for "-drive file="%s",index=%d,media=disk". It appears to me as if "-hda" is implemented suboptimally, then. In particular, drive_add() should be able to get a separate "file" parameter, which can be overridden by the "fmt" parameter. Of course, this would mean that the global drives_opt[] array should not have element type "char", but a struct. It is a pity that there is DWIMery going on in drive_init(), needing the other options to be parsed already, otherwise drive_add() could have been replaced by calls to drive_init(). Ciao, Dscho