cluster/cman/cman_tool Makefile cman_tool.h main.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: rohara at sourceware.org 2007-10-12 18:10:12
Modified files:
cman/cman_tool : Makefile cman_tool.h main.c
Log message:
Add ability to format output and filter based on node name.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.1&r2=1.4.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/cman_tool.h.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3.2.5&r2=1.3.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/main.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.12.2.9&r2=1.12.2.10
cman/cman_tool/Makefile +1 -1
@@ -37,7 +37,7 @@ cp ${TARGET} ${top_srcdir}/bin cman_tool: main.o join.o join_ccs.o - $(CC) $(LDFLAGS) -L$(libdir) -o $@ $^ -lccs + $(CC) $(LDFLAGS) -L$(libdir) -o $@ $^ -lccs -lcman main.o: main.c cman_tool.h $(CC) $(CFLAGS) -c -o $@ $<
cman/cman_tool/cman_tool.h +10 -2
@@ -35,7 +35,6 @@#include <limits.h> #include <unistd.h> -extern char *prog_name;#ifndef TRUE
@@ -50,14 +49,22 @@exit (EXIT_FAILURE ); \ } while (0) -#define DEFAULT_PORT 6809#define DEFAULT_VOTES 1#define MAX_INTERFACES 10 +#define MAX_FORMAT_OPTS 10#define MAX_NODE_NAME_LEN 65#define MAX_MCAST_NAME_LEN 256#define MAX_PATH_LEN 256 +enum format_opt +{ +FMT_NONE , +FMT_ID , +FMT_NAME , +FMT_TYPE , +FMT_ADDR , +};struct commandline {
@@ -68,6 +75,7 @@char *multicast_names[MAX_INTERFACES ];char *nodenames[MAX_INTERFACES ];char *interfaces[MAX_INTERFACES ]; +char *format_opts;int votes;int expected_votes;int two_node;
cman/cman_tool/main.c +139 -2
175 lines not on this page · raw message