From: Ian Jackson Subject: Re: [PATCH 10/14] docs: update xl-disk-configuration.txt to describe new syntax Date: Wed, 18 May 2011 11:31:22 +0100 Message-ID: <19923.40954.556919.444777@mariner.uk.xensource.com> References: <1305211004-31687-1-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-2-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-3-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-4-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-5-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-6-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-7-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-8-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-9-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-10-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-11-git-send-email-ian.jackson@eu.citrix.com> <1305290747.31488.113.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1305290747.31488.113.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 10/14] docs: update xl-disk-configuration.txt to describe new syntax"): > Since this is a bit of a total rewrite I've attached the patched up > version of the file too for other people's convenience since the diff > itself is almost unusable, hence I have snipped most of the - lines in > the diff before commenting on the + bits. Right. > > +where each diskspec is in this form: > > + > > + [=|flag]*, > > + [, [, [, []]]], > > + [=]*, > > + [target=] > > The actual meaning of this is pretty opaque. The paragraphs following > "More formally" does a pretty good job of describing it but I still have > a few questions/misunderstandings. Do you think I should get rid of this template ? > It's not obvious that the "[, [, [, > []]]]," bit specifies the "positional parameters" (I'm assuming > they do) nor is it mentioned in the text whether or not the positional > parameters must be contiguous if used. > > Are you using "*" to mean "0 or 1 of the preceding element" as opposed > to "0 or more of the preceding element", I initially read it as the > second which confused me because it suggests that a valid syntax could > be > [=|flag][=|flag][=|flag], > whereas I expected it would need to be > [=|flag],[=|flag],[=|flag], > is the placement of either the "," or the "*" wrong and/or did you mean > "?" rather than "*"? No, it's just that the placement of the "," is wrong. > > +Description: Block device or image file path. For a > > + physical block device a /dev will be prepended > > when not specified and when the path doesn't > > + start with a '/'. > > Won't we prepend a /dev/ for any path, regardless of whether it is a > physical block device or an image file? Granted it's not likely to be > all that useful in the second case but we can't really distinguish the > two until too late. Yes, this is a good point. > > +Deprecated values are acceptable and are intended work compatibly with > > +xend and xl from xen 4.1. In future they may print a warning. > > +Support for deprecated parameters and syntaxes are likely to be > > +dropped in future versions of xl. > > > > +There is also support for a deprecated old syntax for : > > > > + [:][],[:], (deprecated) > > > > +This syntax also supports deprecated prefixes, described below. These > > +are found prepended to the format parameter - eg "tap:aio:qcow:". > > Are valid s a fixed list of existing formats which will not be > extended as list of supported formats grows in the future, IOW new > formats will only be available via the format positional paramter? That is correct. > > +: > > +----------------- > > That tag doesn't appear anywhere in the syntax description, so it's not > clear where it is allowable. I'd assume it was above if I > didn't know any better... > > > +Description: Specifies the block device type. > > +Supported values: phy,file, tap, tap2 > ^ whitespace I think this is a leftover which should be deleted. > > +: > > +-------------- > > Spelled above? No. It should be backend-type. I will send out a fixed version. Ian.