]> git.ipfire.org Git - thirdparty/libvirt.git/commit
metadata: track title edits across libvirtd restart
authorEric Blake <eblake@redhat.com>
Tue, 22 Jul 2014 15:41:05 +0000 (09:41 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 23 Jul 2014 16:07:34 +0000 (10:07 -0600)
commit60e49440598b4aeb4a32bf23bfa5ed85672cbd6a
tree4d9c6854f84b41ec7767cabea04770ac7ee2cacd
parentb6938a7c880168b2b0bbb3f45b566b3d2318d49c
metadata: track title edits across libvirtd restart

https://bugzilla.redhat.com/show_bug.cgi?id=1122205

Although the edits were changing in-memory XML, it was not flushed
to disk; so unless some other action changes XML, a libvirtd restart
would lose the changed information.

* src/conf/domain_conf.c (virDomainObjSetMetadata): Add parameter,
to save live status across restarts.
(virDomainSaveXML): Allow for test driver.
* src/conf/domain_conf.h (virDomainObjSetMetadata): Adjust
signature.
* src/bhyve/bhyve_driver.c (bhyveDomainSetMetadata): Adjust caller.
* src/lxc/lxc_driver.c (lxcDomainSetMetadata): Likewise.
* src/qemu/qemu_driver.c (qemuDomainSetMetadata): Likewise.
* src/test/test_driver.c (testDomainSetMetadata): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/bhyve/bhyve_driver.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c