[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] rev5: support colon in filenames
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH] rev5: support colon in filenames |
Date: |
Wed, 15 Jul 2009 18:42:17 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090320) |
Anthony Liguori schrieb:
> 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
> -net nic,model=rtl8139,name=foo -net.foo.macaddr 00:11:43:55:44:22
Looks like a very verbose syntax. However, it's the cleanest suggestion
so far, IMHO. It might be perfectly reasonable to use for management
apps or for a single option (the file name) manually as needed. We'll
need to retain the old, more convenient syntax anyway for compatibility.
Your examples are mixed style already, so this is probably what you
intended anyway.
Kevin
- [Qemu-devel] Re: qcow2 relative paths (was: [PATCH] rev5: support colon in filenames), (continued)
- [Qemu-devel] [PATCH] rev6: support colon in filenames, Ram Pai, 2009/07/16
- [Qemu-devel] [PATCH] rev7: support colon in filenames, Ram Pai, 2009/07/17
- [Qemu-devel] Re: [PATCH] rev7: support colon in filenames, Kevin Wolf, 2009/07/21
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Blue Swirl, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Anthony Liguori, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Blue Swirl, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Anthony Liguori, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames,
Kevin Wolf <=
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Michael S. Tsirkin, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Amit Shah, 2009/07/16
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Markus Armbruster, 2009/07/16
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Anthony Liguori, 2009/07/16
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Gerd Hoffmann, 2009/07/16
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Gerd Hoffmann, 2009/07/16
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Kevin Wolf, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Anthony Liguori, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Paul Brook, 2009/07/15
- Re: [Qemu-devel] [PATCH] rev5: support colon in filenames, Gerd Hoffmann, 2009/07/15