Skip to content

Commit c6fba0f

Browse files
committed
Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- prepare OCFS2 nodes
1 parent c400253 commit c6fba0f

21 files changed

Lines changed: 30 additions & 13 deletions

api/src/com/cloud/storage/Storage.java

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ public static enum StoragePoolType {
9696
LVM(false), // XenServer local LVM SR
9797
SharedMountPoint(true),
9898
VMFS(true), // VMware VMFS storage
99-
PreSetup(true); // for XenServer, Storage Pool is set up by customers.
99+
PreSetup(true), // for XenServer, Storage Pool is set up by customers.
100+
OCFS2(true);
100101

101102

102103
boolean shared;

core/src/com/cloud/agent/Listener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public interface Listener {
8989
* @param state the current state of the agent.
9090
*/
9191
boolean processDisconnect(long agentId, Status state);
92-
92+
9393
/**
9494
* If this Listener is passed to the send() method, this method
9595
* is called by AgentManager after processing an answer

server/src/com/cloud/capacity/ComputeCapacityListener.java

100644100755
File mode changed.

server/src/com/cloud/capacity/StorageCapacityListener.java

100644100755
File mode changed.

server/src/com/cloud/cluster/ClusterAsyncExectuionListener.java

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,5 @@ public boolean processTimeout(long agentId, long seq) {
7676
public int getTimeout() {
7777
return -1;
7878
}
79-
8079
}
8180

server/src/com/cloud/configuration/DefaultComponentLibrary.java

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
import com.cloud.network.vpn.RemoteAccessVpnManagerImpl;
106106
import com.cloud.offerings.dao.NetworkOfferingDaoImpl;
107107
import com.cloud.service.dao.ServiceOfferingDaoImpl;
108+
import com.cloud.storage.OCFS2ManagerImpl;
108109
import com.cloud.storage.StorageManagerImpl;
109110
import com.cloud.storage.dao.DiskOfferingDaoImpl;
110111
import com.cloud.storage.dao.GuestOSCategoryDaoImpl;
@@ -319,6 +320,7 @@ protected void populateManagers() {
319320
addManager("VirtualMachineManager", ClusteredVirtualMachineManagerImpl.class);
320321
addManager("HypervisorGuruManager", HypervisorGuruManagerImpl.class);
321322
addManager("ClusterFenceManager", ClusterFenceManagerImpl.class);
323+
addManager("OCFS2Manager", OCFS2ManagerImpl.class);
322324

323325
ComponentInfo<? extends Manager> info = addManager("ConsoleProxyManager", ConsoleProxyManagerImpl.class);
324326
info.addParameter("consoleproxy.sslEnabled", "true");

server/src/com/cloud/consoleproxy/ConsoleProxyListener.java

100644100755
File mode changed.

server/src/com/cloud/dc/ClusterDetailsDaoImpl.java

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public ClusterDetailsVO findDetail(long clusterId, String name) {
5353

5454
return findOneIncludingRemovedBy(sc);
5555
}
56+
5657

5758
@Override
5859
public Map<String, String> findDetails(long clusterId) {

server/src/com/cloud/hypervisor/kvm/discoverer/KvmServerDiscoverer.java

100644100755
File mode changed.

server/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,5 @@ public boolean processDisconnect(long agentId, Status state) {
575575
@Override
576576
public boolean processTimeout(long agentId, long seq) {
577577
return false;
578-
}
579-
578+
}
580579
}

0 commit comments

Comments
 (0)