[libvirt] [PATCH libvirt-java 9/9] Add resize flags to StorageVol

Wido den Hollander wido at widodh.nl
Sat Jan 5 11:48:26 UTC 2013


Signed-off-by: Wido den Hollander <wido at widodh.nl>
---
 src/main/java/org/libvirt/StorageVol.java |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/main/java/org/libvirt/StorageVol.java b/src/main/java/org/libvirt/StorageVol.java
index 66e647f..9ea23c7 100644
--- a/src/main/java/org/libvirt/StorageVol.java
+++ b/src/main/java/org/libvirt/StorageVol.java
@@ -23,6 +23,13 @@ public class StorageVol {
         static final int VIR_STORAGE_POOL_DELETE_ZEROED = 1;
     }
 
+    static final class ResizeFlags {
+        /**
+         * Size is in bytes instead of KiB
+         */
+        static final int VIR_DOMAIN_BLOCK_RESIZE_BYTES = (1 << 0);
+    }
+
     public static enum Type {
         /**
          * Regular file based volumes
-- 
1.7.9.5




More information about the libvir-list mailing list