Displaying 1 result from an estimated 1 matches for "o2nm_cluster_attr_fence_method_read".
2009 Nov 17
1
[PATCH 1/1] ocfs2/cluster: Make fence method configurable
...t;unknown",
+};
struct o2nm_node *o2nm_get_node_by_num(u8 node_num)
{
@@ -579,6 +584,41 @@ static ssize_t o2nm_cluster_attr_reconnect_delay_ms_write(
return o2nm_cluster_attr_write(page, count,
&cluster->cl_reconnect_delay_ms);
}
+
+static ssize_t o2nm_cluster_attr_fence_method_read(
+ struct o2nm_cluster *cluster, char *page)
+{
+ unsigned int i = O2NM_FENCE_METHODS;
+
+ if (cluster && cluster->cl_fence_method < O2NM_FENCE_METHODS)
+ i = cluster->cl_fence_method;
+
+ return sprintf(page, "%s\n", o2nm_fence_method_desc[i]);
+}
+
+static ssize_t o2nm...