[Ocfs2-commits] zab commits r1994 -
branches/usysfsify/fs/ocfs2/cluster
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Mar 17 14:01:15 CST 2005
Author: zab
Date: 2005-03-17 14:01:13 -0600 (Thu, 17 Mar 2005)
New Revision: 1994
Modified:
branches/usysfsify/fs/ocfs2/cluster/nodemanager.c
Log:
o I have an idea, actually set and output the local attribute
Modified: branches/usysfsify/fs/ocfs2/cluster/nodemanager.c
===================================================================
--- branches/usysfsify/fs/ocfs2/cluster/nodemanager.c 2005-03-17 19:53:26 UTC (rev 1993)
+++ branches/usysfsify/fs/ocfs2/cluster/nodemanager.c 2005-03-17 20:01:13 UTC (rev 1994)
@@ -308,7 +308,7 @@
}
static ssize_t nm_node_local_read(struct nm_node *node, char *page)
{
- return sprintf(page, "%u", node->nd_local);
+ return sprintf(page, "%d\n", node->nd_local);
}
static ssize_t nm_node_local_write(struct nm_node *node,
@@ -346,7 +346,8 @@
cluster->cl_local_node = 0;
}
- if (tmp) {
+ node->nd_local = tmp;
+ if (node->nd_local) {
cluster->cl_has_local = tmp;
cluster->cl_local_node = node->nd_num;
}
More information about the Ocfs2-commits
mailing list