cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/cman/cman_tool main.c
Date: 9 Oct 2006 15:54:31 -0000	[thread overview]
Message-ID: <20061009155431.24823.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield at sourceware.org	2006-10-09 15:54:31

Modified files:
	cman/cman_tool : main.c 

Log message:
	If there are disallowed (AISONLY) nodes in the cluster, then name & shame them.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/main.c.diff?cvsroot=cluster&r1=1.49&r2=1.50

--- cluster/cman/cman_tool/main.c	2006/10/05 07:48:33	1.49
+++ cluster/cman/cman_tool/main.c	2006/10/09 15:54:31	1.50
@@ -270,6 +270,23 @@
 	}
 	printf("\n");
 
+	if (einfo->ei_flags & CMAN_EXTRA_FLAG_DISALLOWED) {
+		int count;
+		int numnodes;
+		cman_node_t *nodes;
+
+		count = cman_get_node_count(h);
+		nodes = malloc(sizeof(cman_node_t) * count);
+
+		if (cman_get_disallowed_nodes(h, count, &numnodes, nodes) == 0) {
+			printf("Disallowed nodes: ");
+			for (i=0; i<numnodes; i++) {
+				printf("%s ", nodes[i].cn_name);
+			}
+			printf("\n");
+		}
+	}
+
 }
 
 static int node_compare(const void *va, const void *vb)



             reply	other threads:[~2006-10-09 15:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-09 15:54 pcaulfield [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-09-28 13:26 [Cluster-devel] cluster/cman/cman_tool main.c pcaulfield
2007-09-28 12:18 pcaulfield
2007-09-28 12:00 pcaulfield
2007-08-15 19:39 rmccabe
2007-02-19 14:05 pcaulfield
2007-02-19 14:04 pcaulfield
2006-07-10 13:15 pcaulfield
2006-07-10 13:13 pcaulfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061009155431.24823.qmail@sourceware.org \
    --to=pcaulfield@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).