[libvirt] [PATCH libvirt-java] Add new WITH_SNAPSHOTS removal flag for Storage Volumes
Wido den Hollander
wido at widodh.nl
Fri Nov 6 14:41:56 UTC 2015
This was recently added to libvirt and this is to match the API
Signed-off-by: Wido den Hollander <wido at widodh.nl>
---
src/main/java/org/libvirt/StorageVol.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/libvirt/StorageVol.java b/src/main/java/org/libvirt/StorageVol.java
index 3b1533e..47a9013 100644
--- a/src/main/java/org/libvirt/StorageVol.java
+++ b/src/main/java/org/libvirt/StorageVol.java
@@ -22,6 +22,10 @@ public class StorageVol {
* Clear all data to zeros (slow)
*/
static final int VIR_STORAGE_POOL_DELETE_ZEROED = 1;
+ /**
+ * Delete a volume even if it has snapshots
+ */
+ static final int VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS = 2;
}
public static final class ResizeFlags {
--
1.9.1
More information about the libvir-list
mailing list