xl: disk parsing preparation for empty cdrom devices
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 26 Jul 2012 09:35:36 +0000 (10:35 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 26 Jul 2012 09:35:36 +0000 (10:35 +0100)
commitc902f397d67d3fa959d46a0373230da3f8c8af92
tree32fed48be6609271c5533e09384f7a40499a9efb
parent79702808336453e6ec75777ea94f01027d439ebd
xl: disk parsing preparation for empty cdrom devices

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 <vdev>[:<devtype>] parsing out into a helper function,
  `vdev_and_devtype'.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
docs/misc/xl-disk-configuration.txt
tools/libxl/libxlu_disk_l.c
tools/libxl/libxlu_disk_l.h
tools/libxl/libxlu_disk_l.l