[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] adding search to dhcp
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] adding search to dhcp |
Date: |
Wed, 11 May 2011 22:49:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2011-05-11 18:08, Stefan Hajnoczi wrote:
> On Wed, May 11, 2011 at 4:22 PM, Carl Karsten <address@hidden> wrote:
>> On Wed, May 11, 2011 at 6:01 AM, Markus Armbruster <address@hidden> wrote:
>>> Stefan Hajnoczi <address@hidden> writes:
>>>
>>>> On Tue, May 10, 2011 at 6:40 PM, Carl Karsten <address@hidden> wrote:
>>>>> I would expect the syntax to look like this:
>>>>>
>>>>> qemu -hda 1.qcow2 -net nick -net
>>>>> user,hostname=qemu,search=example.com,sales.example.com
>>>>
>>>> Comma escaping is needed but it seems like a reasonable feature to me.
>>>
>>> Comma escaping is ugly:
>>> -net user,hostname=qemu,search=example.com,,sales.example.com
>>>
>>> Could we have multiple search options instead? Like this:
>>> -net user,hostname=qemu,search=example.com,search=sales.example.com
>>>
>>
>> How about:
>>
>> -net user,hostname=qemu,search="example.com,sales.example.com"
>
> That does not work the way you'd expect:
> $ echo asdf=asdf,ok="this,is,a,test"
> asdf=asdf,ok=this,is,a,test
>
> Also, let's not get into the business of matching quotes and passing
> them escaped on the shell. That's just as ugly as escaping commas and
> more work.
>
> I think the two options are using QEMU's typical comma escaping ',,'
> or specifying the option multiple times. I'd go with comma escaping
> for consistency. I'm not aware of any other option in QEMU that is
> specified multiple times.
-net user,hostfwd=...,hostfwd=...
Let's got for multiple specification, ',,' is just ugly IMHO.
Jan
signature.asc
Description: OpenPGP digital signature