From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lgln0-0007WE-DM for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:09:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lglmz-0007UK-7a for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:09:29 -0400 Received: from [199.232.76.173] (port=36147 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lglmz-0007U5-0P for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:09:29 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2559) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lglmy-0006p0-9x for qemu-devel@nongnu.org; Mon, 09 Mar 2009 16:09:28 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LggZw-0006g5-8q for qemu-devel@nongnu.org; Mon, 09 Mar 2009 10:35:40 -0400 Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH][RFC] Handling ':' on filenames From: Eduardo Habkost References: <20090306212830.GL5077@blackpad> <49B3ABDF.2080803@redhat.com> <20090308114941.GA12649@miranda.arrow> In-Reply-To: <20090308114941.GA12649@miranda.arrow> Date: Mon, 09 Mar 2009 11:32:36 -0300 Message-Id: <1236608928-sup-8973@blackpad> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stuart Brady Cc: qemu-devel Excerpts from Stuart Brady's message of Dom Mar 08 08:49:41 -0300 2009: > On Sun, Mar 08, 2009 at 01:28:31PM +0200, Uri Lublin wrote: > > b. We do not want to use "qcow2:/tmp/a:b" as filenames (been there). > > We want to use -drive file=/tmp/a:b,format=qcow2 (and > > similar "qemu-img info -f "). > > I can't help but feel that any approach to extracting filenames from the > middle of arguments will always have problems. > > I suppose a syntax like this: > > -drive file=/tmp/file,with,commas:and:colons ,format=qcow2 > > (i.e. with the next parameter to -drive starting in a new argument)... > wouldn't win many supporters though? The -drive option has a way to escape colons. For the filename "/tmp/a,b,c", you can use: -drive file=/tmp/a,,b,,c,format=qcow2 Not pretty, but it seems to work. -- Eduardo