]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow <source> for type=block to have no dev
authorDoug Goldstein <cardoe@cardoe.com>
Mon, 9 Sep 2013 02:08:06 +0000 (21:08 -0500)
committerDoug Goldstein <cardoe@cardoe.com>
Tue, 17 Sep 2013 19:10:40 +0000 (14:10 -0500)
commit4b5652d0dcb2d53fd4240f589a63aaa434650fe0
tree238b61919ce287f64dceb8a17419fc1fd867fa12
parentcaf6589233201ef302503c0ed802fc216593cdbe
Allow <source> for type=block to have no dev

Currently the XML parser already allows the following syntax:
  <disk type='block' device='cdrom'>
    <source startupPolicy='optional'/>
    <target dev='hda' bus='ide'/>
    <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  </disk>

But it if the dev value is NULL then it would not have the leading
"<source ", resulting in invalid XML.
docs/schemas/domaincommon.rng
src/conf/domain_conf.c