From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MROlb-0006i4-H3 for qemu-devel@nongnu.org; Thu, 16 Jul 2009 07:04:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MROlV-0006QK-IY for qemu-devel@nongnu.org; Thu, 16 Jul 2009 07:04:45 -0400 Received: from [199.232.76.173] (port=32824 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MROlV-0006Po-Bb for qemu-devel@nongnu.org; Thu, 16 Jul 2009 07:04:41 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33597) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MROlU-0007Ip-NJ for qemu-devel@nongnu.org; Thu, 16 Jul 2009 07:04:41 -0400 Date: Thu, 16 Jul 2009 16:27:05 +0530 From: Amit Shah Subject: Re: [Qemu-devel] [PATCH] rev5: support colon in filenames Message-ID: <20090716105705.GB14243@amit-x200.redhat.com> References: <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> <4A5DF875.2020808@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A5DF875.2020808@us.ibm.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , kvm-devel , linuxram@us.ibm.com, qemu-devel@nongnu.org, Blue Swirl , Jan Kiszka , Paul Brook On (Wed) Jul 15 2009 [10:40:37], Anthony Liguori wrote: > Blue Swirl wrote: >> 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 >> > > The explicit ordering part seems clunky to me. How about: > > -drive name=vda,if=virtio -drive.vda.file filename.img > > What's nice about this syntax is it generalizes well. You could have: > > -drive.vda.if virtio -drive.vda.file filename.img How would you differentiate between multiple files? For example, filename1.img should be the boot drive and filename2.img should be the secondary drive. Amit