aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/stackglue.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-02-01 18:17:30 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:05 -0400
commit9c6c877c04ce17d76a35d2173d3a3840d6b796a2 (patch)
treedb8bd7a104f17ddc28b0e642f39cbd059aca0fb7 /fs/ocfs2/stackglue.h
parentb61817e1166c5e19c08baf05196477cc345e1b1a (diff)
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>
Diffstat (limited to 'fs/ocfs2/stackglue.h')
-rw-r--r--fs/ocfs2/stackglue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h
index c96c8bb76863..d88bc655644b 100644
--- a/fs/ocfs2/stackglue.h
+++ b/fs/ocfs2/stackglue.h
@@ -209,7 +209,8 @@ struct ocfs2_stack_plugin {
209 209
210 210
211/* Used by the filesystem */ 211/* Used by the filesystem */
212int ocfs2_cluster_connect(const char *group, 212int ocfs2_cluster_connect(const char *stack_name,
213 const char *group,
213 int grouplen, 214 int grouplen,
214 void (*recovery_handler)(int node_num, 215 void (*recovery_handler)(int node_num,
215 void *recovery_data), 216 void *recovery_data),