From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: Re: `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` Date: Fri, 16 May 2014 10:57:45 -0400 Message-ID: <53762769.7020101@oracle.com> References: <53761D47.7030103@oracle.com> <1400249899.8259.74.camel@kazak.uk.xensource.com> <53762551.1080206@oracle.com> <1400251896.24735.2.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400251896.24735.2.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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: >> >> [=|,]*, >> [, [, [, []]]], >> [=|,]* >> [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 > including trailing whitespaces. Therefore in that case > it must come last > > Ian. Sorry. Will read more carefully next time. Zhigang