Repository: cloudstack
Updated Branches:
refs/heads/4.4 c8b890bec -> e2bb4cf58
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
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e2bb4cf5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e2bb4cf5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e2bb4cf5
Branch: refs/heads/4.4
Commit: e2bb4cf5830f98cc8502135190073dd1753af5be
Parents: c8b890b
Author: Marcus Sorensen <[email protected]>
Authored: Fri Jan 23 00:09:55 2015 -0800
Committer: Marcus Sorensen <[email protected]>
Committed: Fri Jan 23 00:13:19 2015 -0800
----------------------------------------------------------------------
.../hypervisor/kvm/resource/LibvirtComputingResource.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e2bb4cf5/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 bcd8bb5..8dcb88e 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
@@ -1,4 +1,4 @@
-// Licensed to the Apache Software Foundation (ASF) under one
+// Licensed to the Apache Software Foundation (ASF) under oneD
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
@@ -4044,6 +4044,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;