From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [PATCH 2/3] xl: disk parsing preparation for empty cdrom devices Date: Wed, 25 Jul 2012 17:08:05 +0100 Message-ID: <1343232486-2943-3-git-send-email-ian.jackson@eu.citrix.com> References: <1343232486-2943-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: <1343232486-2943-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: xen-devel@lists.xen.org Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org 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 --- docs/misc/xl-disk-configuration.txt | 11 ++-- tools/libxl/libxlu_disk_l.c | 104 +++++++++++++++++++--------------- tools/libxl/libxlu_disk_l.h | 2 +- tools/libxl/libxlu_disk_l.l | 44 +++++++++----- 4 files changed, 93 insertions(+), 68 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-