From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 9 Oct 2006 15:54:31 -0000 Subject: [Cluster-devel] cluster/cman/cman_tool main.c Message-ID: <20061009155431.24823.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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