]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Ensure libvirt_lxc process loads the live XML config
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 30 Apr 2012 14:48:57 +0000 (15:48 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 1 May 2012 15:05:02 +0000 (16:05 +0100)
commiteb06375a84c841b769ba4ca89f060ea72a66f1f8
treead97887f82c5660d7ee4e73f6d7741d8ec0ab84e
parent8f3728f85366d99568134053c959ba32ffb0e662
Ensure libvirt_lxc process loads the live XML config

Currently the libvirt_lxc process uses VIR_DOMAIN_XML_INACTIVE
when loading the XML for the container. This means it loses
any dynamic data such as the, just allocated, SELinux label.

Further there is an inconsistency in the libvirt LXC driver
whereby it saves the live config XML and then later overwrites
the file with the live status XML instead. Add a comment about
this for future reference.

* src/lxc/lxc_controller.c: Remove VIR_DOMAIN_XML_INACTIVE
  when loading XML
* src/lxc/lxc_driver.c: Add comment about inconsistent
  config file formats

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c