]> xenbits.xensource.com Git - libvirt.git/commit
conf: don't close the source element inside different function
authorPavel Hrdina <phrdina@redhat.com>
Thu, 24 Aug 2017 14:46:58 +0000 (16:46 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 28 Aug 2017 12:02:50 +0000 (14:02 +0200)
commite02ff020cac1aa2b35c7eed4e0446be9a49496ac
treea489b2b762e4e798f042c05ec644f5e425dfe562
parent4e56a3e79378a2397342ac6268f360769ded4586
conf: don't close the source element inside different function

While formatting disk or chardev element they both uses
virDomainDiskSourceDefFormatSeclabel() function which also closes
the source element.  This is not extendable.

Use the new virXMLFormatElement() to properly format the source
element with possible child elements.

As a side effect it fixes a bug in disk source formatting.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-seclabel-dynamic-labelskip.xml