mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
conf: Propagate xmlXPathContextPtr into virDomainBlkioDeviceParseXML()
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
9f27f12282
commit
6ec66671da
@ -1666,6 +1666,7 @@ virBlkioDeviceArrayClear(virBlkioDevice *devices,
|
||||
*/
|
||||
static int
|
||||
virDomainBlkioDeviceParseXML(xmlNodePtr root,
|
||||
xmlXPathContextPtr ctxt G_GNUC_UNUSED,
|
||||
virBlkioDevice *dev)
|
||||
{
|
||||
xmlNodePtr node;
|
||||
@ -19687,7 +19688,7 @@ virDomainDefTunablesParse(virDomainDef *def,
|
||||
def->blkio.devices = g_new0(virBlkioDevice, n);
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
if (virDomainBlkioDeviceParseXML(nodes[i],
|
||||
if (virDomainBlkioDeviceParseXML(nodes[i], ctxt,
|
||||
&def->blkio.devices[i]) < 0)
|
||||
return -1;
|
||||
def->blkio.ndevices++;
|
||||
|
Loading…
Reference in New Issue
Block a user