]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Add the 'cluster_stack' sysfs file.
authorJoel Becker <joel.becker@oracle.com>
Fri, 1 Feb 2008 23:17:30 +0000 (15:17 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:05 +0000 (08:56 -0700)
commit73aecda6782c97efe2fefe0c1fe246de5dff351e
treedb8bd7a104f17ddc28b0e642f39cbd059aca0fb7
parent84e56fb78c06388ae0895e78bd9b1f933a1a9a3e
ocfs2: Add the 'cluster_stack' sysfs file.

Userspace can now query and specify the cluster stack in use via the
/sys/fs/ocfs2/cluster_stack file.  By default, it is 'o2cb', which is
the classic stack.  Thus, old tools that do not know how to modify this
file will work just fine.  The stack cannot be modified if there is a
live filesystem.

ocfs2_cluster_connect() now takes the expected cluster stack as an
argument.  This way, the filesystem and the stack glue ensure they are
speaking to the same backend.

If the stack is 'o2cb', the o2cb stack plugin is used.  For any other
value, the fsdlm stack plugin is selected.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlmglue.c
fs/ocfs2/stackglue.c
fs/ocfs2/stackglue.h