diff options
Diffstat (limited to 'fs/ocfs2/stackglue.h')
-rw-r--r-- | fs/ocfs2/stackglue.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h index 1ec56fdb8d0d..66334a30cea8 100644 --- a/fs/ocfs2/stackglue.h +++ b/fs/ocfs2/stackglue.h | |||
@@ -45,6 +45,9 @@ struct file_lock; | |||
45 | */ | 45 | */ |
46 | #define GROUP_NAME_MAX 64 | 46 | #define GROUP_NAME_MAX 64 |
47 | 47 | ||
48 | /* This shadows OCFS2_CLUSTER_NAME_LEN */ | ||
49 | #define CLUSTER_NAME_MAX 16 | ||
50 | |||
48 | 51 | ||
49 | /* | 52 | /* |
50 | * ocfs2_protocol_version changes when ocfs2 does something different in | 53 | * ocfs2_protocol_version changes when ocfs2 does something different in |
@@ -97,8 +100,10 @@ struct ocfs2_locking_protocol { | |||
97 | * locking compatibility. | 100 | * locking compatibility. |
98 | */ | 101 | */ |
99 | struct ocfs2_cluster_connection { | 102 | struct ocfs2_cluster_connection { |
100 | char cc_name[GROUP_NAME_MAX]; | 103 | char cc_name[GROUP_NAME_MAX + 1]; |
101 | int cc_namelen; | 104 | int cc_namelen; |
105 | char cc_cluster_name[CLUSTER_NAME_MAX + 1]; | ||
106 | int cc_cluster_name_len; | ||
102 | struct ocfs2_protocol_version cc_version; | 107 | struct ocfs2_protocol_version cc_version; |
103 | struct ocfs2_locking_protocol *cc_proto; | 108 | struct ocfs2_locking_protocol *cc_proto; |
104 | void (*cc_recovery_handler)(int node_num, void *recovery_data); | 109 | void (*cc_recovery_handler)(int node_num, void *recovery_data); |
@@ -152,7 +157,8 @@ struct ocfs2_stack_operations { | |||
152 | * ->this_node() returns the cluster's unique identifier for the | 157 | * ->this_node() returns the cluster's unique identifier for the |
153 | * local node. | 158 | * local node. |
154 | */ | 159 | */ |
155 | int (*this_node)(unsigned int *node); | 160 | int (*this_node)(struct ocfs2_cluster_connection *conn, |
161 | unsigned int *node); | ||
156 | 162 | ||
157 | /* | 163 | /* |
158 | * Call the underlying dlm lock function. The ->dlm_lock() | 164 | * Call the underlying dlm lock function. The ->dlm_lock() |
@@ -239,6 +245,8 @@ struct ocfs2_stack_plugin { | |||
239 | 245 | ||
240 | /* Used by the filesystem */ | 246 | /* Used by the filesystem */ |
241 | int ocfs2_cluster_connect(const char *stack_name, | 247 | int ocfs2_cluster_connect(const char *stack_name, |
248 | const char *cluster_name, | ||
249 | int cluster_name_len, | ||
242 | const char *group, | 250 | const char *group, |
243 | int grouplen, | 251 | int grouplen, |
244 | struct ocfs2_locking_protocol *lproto, | 252 | struct ocfs2_locking_protocol *lproto, |
@@ -260,7 +268,8 @@ int ocfs2_cluster_connect_agnostic(const char *group, | |||
260 | int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn, | 268 | int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn, |
261 | int hangup_pending); | 269 | int hangup_pending); |
262 | void ocfs2_cluster_hangup(const char *group, int grouplen); | 270 | void ocfs2_cluster_hangup(const char *group, int grouplen); |
263 | int ocfs2_cluster_this_node(unsigned int *node); | 271 | int ocfs2_cluster_this_node(struct ocfs2_cluster_connection *conn, |
272 | unsigned int *node); | ||
264 | 273 | ||
265 | struct ocfs2_lock_res; | 274 | struct ocfs2_lock_res; |
266 | int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn, | 275 | int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn, |