Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4ec... Commit: 4ec386998729159bb68c74c9ddb8636d9f901025 Parent: d7c4483a3f4a1d91b14e9e7d879f5039ed493027 Author: Christine Caulfield ccaulfie@redhat.com AuthorDate: Tue Jul 29 13:52:14 2008 +0100 Committer: Lon Hohberger lhh@redhat.com CommitterDate: Tue Feb 15 15:55:57 2011 -0500
[CMAN] Display the node's votes in cman_tool status
I'm not sure how this one slipped the net.
Resolves: rhbz#653508
Signed-off-by: Christine Caulfield ccaulfie@redhat.com Reviewed-by: Lon Hohberger lhh@redhat.com --- cman/cman_tool/main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c index 7c56556..9575c59 100644 --- a/cman/cman_tool/main.c +++ b/cman/cman_tool/main.c @@ -230,6 +230,7 @@ static void show_status(void) if (cman_get_quorum_device(h, &qinfo) == 0 && qinfo.qi_state == 2) printf("Quorum device votes: %d\n", qinfo.qi_votes); printf("Total votes: %d\n", einfo->ei_total_votes); + printf("Node votes: %d\n", einfo->ei_node_votes);
printf("Quorum: %d %s\n", einfo->ei_quorum, quorate?" ":"Activity blocked"); printf("Active subsystems: %d\n", cman_get_subsys_count(h));