Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aperi-dev] Checkin: to support the Oracle Cluster File System on Linux

Checkin

  ProbeLinux.java 1.8
  Filesystem.java 1.5

to support the Oracle Cluster File System (OCFS2) on Linux.

==

The Oracle Cluster File System (OCFS2) is an open source
cluster file system and project created and maintained by Oracle
and other Linux community participants. OCFS2 has a built-in
distributed lock manager (DLM), and cluster membership service,
though it can also be configured to accept cluster configuration
and membership events from userspace cluster managers (such
as LinuxHA) - it allows multiple SAN attached servers to mount
and share for concurrent access, the same file system. OCFS2 
was originally designed for database access to a shared cluster
file system, with requirements for direct I/O into large files. Recently
some Linux vendors have been using OCFS2 as a shared file
system for virtual machine hosting. OCFS2 will run in the domain
zero Linux kernel of the Xen hypervisor, where it provides a cluster
wide shared file system for SAN attached Virtual Machine hosts,
running virtual machines from OS image files stored in OCFS2.

### Eclipse Workspace Patch 1.0
#P org.eclipse.aperi.common
Index: src/org/eclipse/aperi/TStorm/common/Filesystem.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.aperi/org.eclipse.aperi.common/src/org/eclipse/aperi/TStorm/common/Filesystem.java,v
retrieving revision 1.4
diff -u -r1.4 Filesystem.java
--- src/org/eclipse/aperi/TStorm/common/Filesystem.java	16 Nov 2007 17:57:00 -0000	1.4
+++ src/org/eclipse/aperi/TStorm/common/Filesystem.java	18 Nov 2007 19:14:12 -0000
@@ -102,6 +102,7 @@
    // SAN.FS Nested Fileset
    public static final short REISERFS = 0x0014; // ReiserFS (for defect 12487)
    public static final short GPFS        = 0x0015; // GPFS
+   public static final short OCFS2		= 0x0016; // OCFS2
 
    // IMPORTANT: if TYPES changes, update FS_TYPES in APIConstants.java
    //relative to 0 - use TYPES[fsType + 1]
@@ -129,7 +130,8 @@
          "SANFS",
          "SANFS",
          "REISERFS",
-         "MMFS" };
+         "MMFS",
+         "OCFS2"};
 
    public Filesystem()
    {
#P org.eclipse.aperi.agent.data
Index: src/org/eclipse/aperi/agent/probe/ProbeLinux.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.aperi/org.eclipse.aperi.agent.data/src/org/eclipse/aperi/agent/probe/ProbeLinux.java,v
retrieving revision 1.7
diff -u -r1.7 ProbeLinux.java
--- src/org/eclipse/aperi/agent/probe/ProbeLinux.java	17 Nov 2007 01:36:45 -0000	1.7
+++ src/org/eclipse/aperi/agent/probe/ProbeLinux.java	18 Nov 2007 19:14:13 -0000
@@ -2333,8 +2333,9 @@
                   mounts.type.endsWith("fat"))
                   filesystem.fsType = Filesystem.FAT;
                else if (mounts.type.startsWith("reiser"))
-
                   filesystem.fsType = Filesystem.REISERFS;
+               else if (mounts.type.startsWith("ocfs"))
+                  filesystem.fsType = Filesystem.OCFS2;
                else if (mounts.type.startsWith("ext"))
                   if (mounts.type.charAt(3) > '2')
                      filesystem.fsType = Filesystem.EXT3;



Back to the top