[libvirt] [PATCH RFC 1/3] undefine: Add flags for removing storage files when undefining a domain.
Peter Krempa
pkrempa at redhat.com
Thu Jul 21 15:12:14 UTC 2011
Adds option for virDomainUndefineFlags to remove storage associated with
the domain while undefining it.
VIR_DOMAIN_UNDEFINE_DISK_FILE - remove disk files, that aren't managed by
storage pools.
VIR_DOMAIN_UNDEFINE_DISK_BACKEND - remove storage devices that are managed
using libvirt storage pools.
---
include/libvirt/libvirt.h.in | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 40ce0fc..f99bc8b 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -1203,6 +1203,8 @@ int virDomainUndefine (virDomainPtr domain);
typedef enum {
VIR_DOMAIN_UNDEFINE_MANAGED_SAVE = (1 << 0),
+ VIR_DOMAIN_UNDEFINE_DISK_FILE = (1 << 1),
+ VIR_DOMAIN_UNDEFINE_DISK_BACKEND = (1 << 2),
/* Future undefine control flags should come here. */
} virDomainUndefineFlagsValues;
--
1.7.6
More information about the libvir-list
mailing list