xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']`
Date: Fri, 16 May 2014 10:57:45 -0400	[thread overview]
Message-ID: <53762769.7020101@oracle.com> (raw)
In-Reply-To: <1400251896.24735.2.camel@kazak.uk.xensource.com>

On 05/16/2014 10:51 AM, Ian Campbell wrote:
> On Fri, 2014-05-16 at 10:48 -0400, Zhigang Wang wrote:
>> On 05/16/2014 10:18 AM, Ian Campbell wrote:
>>> On Fri, 2014-05-16 at 10:14 -0400, Zhigang Wang wrote:
>>>> Hi,
>>>>
>>>> `xl create` cannot parse::
>>>>
>>>>     disk = ['target=/tmp/disk.img,vdev=xvdb']
>>>>
>>>> Error::
>>>>
>>>>     # xl create vm.cfg 
>>>>     Parsing config from vm.cfg
>>>>     vm.cfg: config parsing error in disk specification: no vdev specified in `target=/tmp/disk.img,vdev=xvdb'
>>>>
>>>> But can parse::
>>>>
>>>>     disk = ['vdev=xvdb,target=/tmp/disk.img']
>>>>
>>>> Is this a bug?
>>>
>>> No, it is expected, check the docs for the disk format strings.
>>>
>>> (User questions should go to xen-users@)
>>
>> Thanks for your answer.
>>
>> I checked: http://xenbits.xen.org/docs/4.4-testing/misc/xl-disk-configuration.txt
>>  
>> And I think here is what you referred to:
>>
>>     where each diskspec is in this form:
>>         
>>        [<key>=<value>|<flag>,]*,
>>          [<target>, [<format>, [<vdev>, [<access>]]]],
>>          [<key>=<value>|<flag>,]*
>>          [target=<target>]
>>
>> That means disk positional parameter also has orders.
> 
> Well, yes, that's what positional means.
> 
>>  I missed this point before.
> 
> More importantly you are apparently still missing:
> 
>         When this parameter is specified by name, ie with the "target="
>            syntax in the configuration file, it consumes the whole rest of the
>            <diskspec> including trailing whitespaces.  Therefore in that case
>            it must come last
> 
> Ian.

Sorry. Will read more carefully next time.

Zhigang

      reply	other threads:[~2014-05-16 14:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-16 14:14 `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` Zhigang Wang
2014-05-16 14:18 ` Ian Campbell
2014-05-16 14:48   ` Zhigang Wang
2014-05-16 14:51     ` Ian Campbell
2014-05-16 14:57       ` Zhigang Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53762769.7020101@oracle.com \
    --to=zhigang.x.wang@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).