[libvirt] [PATCH 0/4] API for modification of domain metadata

Peter Krempa pkrempa at redhat.com
Fri Jan 27 17:22:15 UTC 2012


This patchset is based on my previous work to add a domain title.

I chose a more general aproach to allow working with the <metadata>
element as suggested by Eric and Daniel, although I did not implement
the <metadata> operations code.

I only provided a patch for the qemu driver for review, but I'll follow
up with a patch for LXC as well as I'll have a final version of this.

Peter Krempa (4):
  xml: Add element <title> to allow short description of domains
  API: Add api to set and get domain metadata
  virsh: Add support for modifying domain description and titles
  qemu: Add support for virDomainGetMetadata and virDomainSetMetadata

 docs/formatdomain.html.in                          |    6 +
 docs/schemas/domaincommon.rng                      |   13 +-
 include/libvirt/libvirt.h.in                       |   31 +++
 include/libvirt/virterror.h                        |    1 +
 src/conf/domain_conf.c                             |   19 ++
 src/conf/domain_conf.h                             |    1 +
 src/driver.h                                       |   15 +
 src/libvirt.c                                      |  125 +++++++++
 src/libvirt_public.syms                            |    2 +
 src/qemu/qemu_driver.c                             |  195 ++++++++++++++
 src/remote/remote_driver.c                         |    2 +
 src/remote/remote_protocol.x                       |   25 ++-
 src/util/virterror.c                               |    6 +
 .../qemu-simple-description-title.xml              |   27 ++
 tests/qemuxml2argvdata/qemuxml2argv-minimal.xml    |    5 +
 tools/virsh.c                                      |  274 ++++++++++++++++++--
 tools/virsh.pod                                    |   34 +++-
 17 files changed, 758 insertions(+), 23 deletions(-)
 create mode 100644 tests/domainschemadata/qemu-simple-description-title.xml

-- 
1.7.3.4




More information about the libvir-list mailing list