You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ml...@apache.org on 2015/01/23 09:10:51 UTC

git commit: updated refs/heads/4.3 to bf397bf

Repository: cloudstack
Updated Branches:
  refs/heads/4.3 43f3d6ae1 -> bf397bfc8


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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bf397bfc
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bf397bfc
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bf397bfc

Branch: refs/heads/4.3
Commit: bf397bfc8860859f3d685baec6ca029c8eadc1c6
Parents: 43f3d6a
Author: Marcus Sorensen <ma...@apple.com>
Authored: Fri Jan 23 00:09:55 2015 -0800
Committer: Marcus Sorensen <ma...@apple.com>
Committed: Fri Jan 23 00:09:55 2015 -0800

----------------------------------------------------------------------
 .../cloud/hypervisor/kvm/resource/LibvirtComputingResource.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf397bfc/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index bdda2dc..486b9e1 100755
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -3922,6 +3922,10 @@ ServerResource {
         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 {