From mboxrd@z Thu Jan 1 00:00:00 1970 From: Blue Swirl Subject: Re: [Qemu-devel] [PATCH] rev5: support colon in filenames Date: Wed, 15 Jul 2009 18:29:01 +0300 Message-ID: References: <1245862739.6278.7.camel@localhost> <1246063310.6278.115.camel@localhost> <1246511321.6429.31.camel@localhost> <4A4C754D.10109@redhat.com> <4A4CAD86.9020607@us.ibm.com> <4A4CB39F.5070506@redhat.com> <1247041831.6297.12.camel@localhost> <1247644283.14246.3.camel@localhost> <4A5DF252.50408@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: linuxram@us.ibm.com, qemu-devel@nongnu.org, Kevin Wolf , Jan Kiszka , kvm-devel , Paul Brook To: Anthony Liguori Return-path: Received: from fg-out-1718.google.com ([72.14.220.155]:44001 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755457AbZGOP3D (ORCPT ); Wed, 15 Jul 2009 11:29:03 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1128608fga.17 for ; Wed, 15 Jul 2009 08:29:02 -0700 (PDT) In-Reply-To: <4A5DF252.50408@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 7/15/09, Anthony Liguori wrote: > Blue Swirl wrote: > > > I bet this won't compile on win32. > > > > Instead of this (IMHO doomed) escape approach, maybe the filename > > parameter could be specified as the next argument, for example: > > -hda format=qcow2,blah,blah,filename_is_next_arg -hda > "filename with > > funky characters like ',' ':' & '!'" > > > > > > -drive name=hda,if=ide,cache=off -hda foo.img > -drive name=vda,if=virtio,cache=writeback -vda foo.img > -drive name=sdb,if=scsi,unit=1 -sdb boo.img > > But Paul has long objected to having -vda or -sda syntaxes. I do agree > though that the most sane thing to do is to make the filename an independent > argument. Then how about something like: -drive name=hda,if=ide,cache=off,file_is_arg -filearg foo.img -drive name=vda,if=virtio,cache=writeback,file_comes_next -patharg foo.img -drive name=sdb,if=scsi,unit=1,fnarg -fnarg boo.img