Displaying 1 result from an estimated 1 matches for "cl_fence_method".
2009 Nov 17
1
[PATCH 1/1] ocfs2/cluster: Make fence method configurable
...eturn 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_cluster_attr_fence_method_write(
+ struct o2nm_cluster *cluster, const char *page, size_t count)
+{
+ unsigned int i;
+
+ if (page[count - 1]...