cluster/cman/cman_tool cman_tool.h main.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rohara at sourceware.org 2007-10-12 18:50:48
Modified files:
cman/cman_tool : 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/cman_tool.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.12&r2=1.12.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.51.2.4&r2=1.51.2.5
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,13 +49,21 @@exit (EXIT_FAILURE ); \ } while (0) -#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 {
@@ -67,6 +74,7 @@char *interfaces[MAX_INTERFACES ];char *override_nodename;char *key_filename; +char *format_opts;int votes;int expected_votes;int two_node;
cman/cman_tool/main.c +111 -20
203 lines not on this page · raw message