On Tue, Jun 26, 2012 at 10:07:32AM +0200, Wido den Hollander wrote:
Signed-off-by: Wido den Hollander <wido(a)widodh.nl>
---
src/main/java/org/libvirt/StoragePool.java | 2 +-
src/main/java/org/libvirt/jna/Libvirt.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/libvirt/StoragePool.java
b/src/main/java/org/libvirt/StoragePool.java
index 4c8492b..249b531 100644
--- a/src/main/java/org/libvirt/StoragePool.java
+++ b/src/main/java/org/libvirt/StoragePool.java
@@ -306,7 +306,7 @@ public class StoragePool {
* @throws LibvirtException
*/
public void refresh(int flags) throws LibvirtException {
- libvirt.virStoragePoolRefresh(VSPP);
+ libvirt.virStoragePoolRefresh(VSPP, flags);
processError();
}
diff --git a/src/main/java/org/libvirt/jna/Libvirt.java
b/src/main/java/org/libvirt/jna/Libvirt.java
index f53199d..597767d 100644
--- a/src/main/java/org/libvirt/jna/Libvirt.java
+++ b/src/main/java/org/libvirt/jna/Libvirt.java
@@ -290,7 +290,7 @@ public interface Libvirt extends Library {
public StoragePoolPointer virStoragePoolLookupByUUIDString(ConnectionPointer
virConnectPtr, String uuidstr);
public StoragePoolPointer virStoragePoolLookupByVolume(StorageVolPointer
storageVolPtr);
public int virStoragePoolNumOfVolumes(StoragePoolPointer storagePoolPtr);
- public int virStoragePoolRefresh(StoragePoolPointer storagePoolPtr);
+ public int virStoragePoolRefresh(StoragePoolPointer storagePoolPtr, int flags);
public int virStoragePoolSetAutostart(StoragePoolPointer storagePoolPtr, int
autostart);
public int virStoragePoolUndefine(StoragePoolPointer storagePoolPtr);
ACK, makes sense, pushed too !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/