[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH][RFC] Handling ':' on filenames
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH][RFC] Handling ':' on filenames |
Date: |
Mon, 09 Mar 2009 11:32:36 -0300 |
User-agent: |
Sup/git |
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