mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
LibvirtComputingResource: Expose KVMStoragePoolManager
KVMStoragePoolManager is a singleton in practice, any plugin or extension of LibvirtComputingResource will need to act on the specific instance of KVMStoragePoolManager that LibvirtComputingResource has initialized. Therefore, expose this variable for those who wish to call storage commands from plugins or extensions. Conflicts: plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
This commit is contained in:
parent
f983e6ed82
commit
455998ce95
@ -4080,6 +4080,10 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
||||
return _storagePoolMgr.disconnectPhysicalDiskByPath(path);
|
||||
}
|
||||
|
||||
protected KVMStoragePoolManager getPoolManager() {
|
||||
return _storagePoolMgr;
|
||||
}
|
||||
|
||||
protected synchronized String attachOrDetachISO(Connect conn, String vmName, String isoPath, boolean isAttach) throws LibvirtException, URISyntaxException,
|
||||
InternalErrorException {
|
||||
String isoXml = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user