From: Ian Campbell Subject: Re: [PATCH 1/2] xl: disk parsing preparation for empty cdrom devices Date: Wed, 25 Jul 2012 16:32:59 +0100 Message-ID: <1343230379.18971.121.camel@zakaz.uk.xensource.com> References: <20496.3805.714321.419012@mariner.uk.xensource.com> <1343229753-30537-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343229753-30537-1-git-send-email-ian.jackson@eu.citrix.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 Jackson Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-07-25 at 16:22 +0100, Ian Jackson wrote: > Prepare the ground for parsing the xend empty cdrom syntax, by > separating out some non-functional changes as this pre-patch: > > * Clarify the disk syntax documentation wording to refer to deprecated > syntaxes too. > > * Make DPC in libxlu_disk_l.l useable in the helper functions as well > as in lexer rules, by providing two definitions, each in force in > the appropriate parts of the file. > > * Break the [:] parsing out into a helper function, > `vdev_and_devtype'. > > No functional change. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell > --- > docs/misc/xl-disk-configuration.txt | 11 ++-- > tools/libxl/libxlu_disk_l.c | 112 ++++++++++++++++++----------------- > tools/libxl/libxlu_disk_l.h | 10 +--- > tools/libxl/libxlu_disk_l.l | 44 +++++++++----- > 4 files changed, 93 insertions(+), 84 deletions(-) > > diff --git a/docs/misc/xl-disk-configuration.txt b/docs/misc/xl-disk-configuration.txt > index 3bf20bf..740b8f6 100644 > --- a/docs/misc/xl-disk-configuration.txt > +++ b/docs/misc/xl-disk-configuration.txt > @@ -164,16 +164,17 @@ information to be interpreted by /etc/xen/scripts/block-