[PATCH libvirt-java 1/9] Add StorageVol and DomainBlock resize methods

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

 



Signed-off-by: Wido den Hollander <wido@xxxxxxxxx>
---
 src/main/java/org/libvirt/jna/Libvirt.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/libvirt/jna/Libvirt.java b/src/main/java/org/libvirt/jna/Libvirt.java
index e68d9ed..dbd8f6c 100644
--- a/src/main/java/org/libvirt/jna/Libvirt.java
+++ b/src/main/java/org/libvirt/jna/Libvirt.java
@@ -168,6 +168,7 @@ public interface Libvirt extends Library {
     public int virDomainAttachDevice(DomainPointer virDomainPtr, String deviceXML);
     public int virDomainAttachDeviceFlags(DomainPointer virDomainPtr, String deviceXML, int flags);
     public int virDomainBlockStats(DomainPointer virDomainPtr, String path, virDomainBlockStats stats, int size);
+    public int virDomainBlockResize(DomainPointer virDomainPtr, String disk, NativeLong size, int flags);
     public int virDomainCoreDump(DomainPointer virDomainPtr, String to, int flags);
     public int virDomainCreate(DomainPointer virDomainPtr);
     public int virDomainCreateWithFlags(DomainPointer virDomainPtr, int flags);
@@ -313,6 +314,7 @@ public interface Libvirt extends Library {
     public StorageVolPointer virStorageVolLookupByName(StoragePoolPointer storagePoolPtr, String name);
     public StorageVolPointer virStorageVolLookupByPath(ConnectionPointer virConnectPtr, String path);
     public int virStorageVolWipe(StorageVolPointer storageVolPtr, int flags);
+    public int virStorageVolResize(StorageVolPointer storageVolPtr, NativeLong capacity, int flags);
 
     // Interface Methods
     public int virInterfaceCreate(InterfacePointer virDevicePointer);
-- 
1.7.9.5

--
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]