]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxcDomainDetachDeviceFlags: Parse XML twice rather than use virDomainDeviceDefCopy
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Nov 2022 16:01:31 +0000 (17:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Dec 2022 11:03:11 +0000 (12:03 +0100)
commit5b09af96f95bb730238d7de163a2d4c3cf1c8805
tree1395436a58e9c9bda4d839c6c30ce08a6781427f
parent904d80b77339ba5422e6e4c57a4f3bb3a5ac1464
lxcDomainDetachDeviceFlags: Parse XML twice rather than use virDomainDeviceDefCopy

'virDomainDeviceDefCopy' formats the definition and parses it back.
Since we already are parsing the XML here, we're better off parsing it
twice and save the formatting step.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_driver.c