]> xenbits.xensource.com Git - libvirt.git/commit
conf: domain: Refactor virDomainDiskDefParseXML
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Apr 2021 07:10:55 +0000 (09:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Apr 2021 12:44:00 +0000 (14:44 +0200)
commit4ea5819d6ed75dbe70c0498be0e93d3c27a37dbf
tree38d38223a635c69dea821a39c93a3cc63d44ceed
parent02dfea6693384eb62e066ae1152409c5cebcdf87
conf: domain: Refactor virDomainDiskDefParseXML

Use the new virXMLProp helpers and XPath queries to get rid of the old
style of iteration through element children.

Note that in case of def->blockio.logical_block_size,
def->blockio.physical_block_size and def->rotation_rate the wraparound
behaviour of 'virStrToLong_ui' was _not_ forward ported to the new code
as it makes no sense with the attributes.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c