[Ocfs2-tools-devel] [PATCH 1/1] ocfs2-tools: fix to print node names correctly
Srinivas Eeda
srinivas.eeda at oracle.com
Mon Aug 31 18:01:32 PDT 2009
mounted.ocfs2 -f lists node names as "Unknown" when node number is greater than
number of nodes configured in cluster.conf.
Validation check in ocfs2_print_full_detect should be against O2NM_MAX_NODES.
Signed-off-by: Srinivas Eeda <srinivas.eeda at oracle.com>
---
mounted.ocfs2/mounted.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mounted.ocfs2/mounted.c b/mounted.ocfs2/mounted.c
index 6ce3eb6..e4c5877 100644
--- a/mounted.ocfs2/mounted.c
+++ b/mounted.ocfs2/mounted.c
@@ -120,7 +120,7 @@ static void ocfs2_print_full_detect(struct list_head *dev_list)
if (dev->hb_dev)
printf("Heartbeat device");
else if (dev->mount_flags & OCFS2_MF_MOUNTED_CLUSTER)
- ocfs2_print_nodes(dev, nodes, i);
+ ocfs2_print_nodes(dev, nodes, O2NM_MAX_NODES);
else
printf("Not mounted");
printf("\n");
--
1.5.6.5
More information about the Ocfs2-tools-devel
mailing list