[PATCH libvirt-java] Add new WITH_SNAPSHOTS removal flag for Storage Volumes

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

 



This was recently added to libvirt and this is to match the API

Signed-off-by: Wido den Hollander <wido@xxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]