]> xenbits.xensource.com Git - libvirt.git/commit
conf: storage: Remove virStoragePoolDefParseNode
authorPeter Krempa <pkrempa@redhat.com>
Thu, 22 Sep 2022 15:00:25 +0000 (17:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 6 Oct 2022 08:54:24 +0000 (10:54 +0200)
commitb3e33a0ef7e62169175280c647aa9ac361bd554d
tree3de21c9cadd6af2d8fd38e5aec701751e6998a4a
parentee3b96bcb0d63503cf045bdc3ae75e91897f53ac
conf: storage: Remove virStoragePoolDefParseNode

Replace it by proper use of virXMLParse to validate the root node and
allocate the context. The use in the test driver can be directly
replaced by virStoragePoolDefParseXML as both are validated.

The change to the storage driver isn't trivial though as it requires
careful xpath context juggling to parse the nested volumes properly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/storage_conf.c
src/conf/storage_conf.h
src/libvirt_private.syms
src/test/test_driver.c