[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH RFC 1/3] undefine: Add flags for removing storage files when undefining a domain.



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]