[libvirt] [PATCH v2 0/8] Introduce New API virDomainUndefineFlags

Osier Yang jyang at redhat.com
Fri Jul 15 09:06:42 UTC 2011


Per discussion on
https://www.redhat.com/archives/libvir-list/2011-July/msg00556.html,
This patch series introduce new API virDomainUndefineFlags, which
only support flag VIR_DOMAIN_UNDEFINE_MANAGED_STATE now, might introduce
more flags in future though.

If the domain has a managed state file, then including
VIR_DOMAIN_UNDEFINE_MANAGED_STATE in @flags will also remove that file,
and omitting the flag will cause the undefine process to fail. This
also changes the behavior of virDomainUndefine, but considering undefine
a domain with managed state file left is unsafe, we need to do so.

[PATCH v2 1/8] is small fix on rpc generator scripts, not related with the
new API.

[PATCH v2 1/8] rpc: Fix typos in rpc generator scripts
[PATCH v2 2/8] undefine: Define the new API
[PATCH v2 3/8] undefine: Wire up the remote protocol
[PATCH v2 4/8] undefine: Implement internal API for qemu driver
[PATCH v2 5/8] undefine: Implement internal API for libxl driver
[PATCH v2 6/8] undefine: Implement undefineFlags in all other
[PATCH v2 7/8] undefine: Extend virsh undefine to support the new
[PATCH v2 8/8] virsh: Extend virsh dominfo to display if managed

v1 - v2:
   * s/virDomainUndefineWithFlags/virDomainUndefineFlags/
   * Update with other bunch of feedbacks from Eric
   * Changes on virsh dominfo to display if domain managed state exists

Regards
Osier




More information about the libvir-list mailing list