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:48:49 -0400 [thread overview]
Message-ID: <53762551.1080206@oracle.com> (raw)
In-Reply-To: <1400249899.8259.74.camel@kazak.uk.xensource.com>
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. I missed this point before.
Thanks,
Zhigang
next prev parent reply other threads:[~2014-05-16 14:48 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 [this message]
2014-05-16 14:51 ` Ian Campbell
2014-05-16 14:57 ` Zhigang Wang
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=53762551.1080206@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.