From: Martin Schwenke Date: Mon, 18 Apr 2016 07:13:38 +0000 (+1000) Subject: ctdb-tools: Drop "ctdb natgwlist" X-Git-Tag: talloc-2.1.7~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12858aa5bf69b28ee9e9eb015e363f190eb3804;p=thirdparty%2Fsamba.git ctdb-tools: Drop "ctdb natgwlist" The new individual status options are better. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/doc/ctdb.1.xml b/ctdb/doc/ctdb.1.xml index fb7c468402d..12ead006486 100644 --- a/ctdb/doc/ctdb.1.xml +++ b/ctdb/doc/ctdb.1.xml @@ -466,30 +466,6 @@ Duration of last recovery/failover: 2.248552 seconds - - natgwlist - - Show the current NAT gateway master and the status of all - nodes in the current NAT gateway group. See the - NAT GATEWAY section in - ctdb - 7 for more details. - - - - Example - -# ctdb natgwlist -0 192.168.2.200 -Number of nodes:4 -pnn:0 192.168.2.200 OK (THIS NODE) -pnn:1 192.168.2.201 OK -pnn:2 192.168.2.202 OK -pnn:3 192.168.2.203 OK - - - - natgw {master|list|status} diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index f04adb122b1..8d1feec9f06 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -1148,31 +1148,6 @@ static int control_nodestatus(struct ctdb_context *ctdb, int argc, const char ** return ret; } -/* - display the list of nodes belonging to this natgw configuration - */ -static int control_natgwlist(struct ctdb_context *ctdb, int argc, const char **argv) -{ - static char prog[PATH_MAX+1] = ""; - - if (argc != 0) { - usage(); - } - - if (!ctdb_set_helper("NAT gateway helper", prog, sizeof(prog), - "CTDB_NATGW_HELPER", CTDB_HELPER_BINDIR, - "ctdb_natgw")) { - DEBUG(DEBUG_ERR, ("Unable to set NAT gateway helper\n")); - exit(1); - } - - execl(prog, prog, "natgwlist", NULL); - - DEBUG(DEBUG_ERR, - ("Unable to run NAT gateway helper %s\n", strerror(errno))); - exit(1); -} - /* Display NAT gateway status */ static int control_natgw(struct ctdb_context *ctdb, int argc, const char **argv) { @@ -5858,7 +5833,6 @@ static const struct { { "scriptstatus", control_scriptstatus, true, false, "show the status of the monitoring scripts (or all scripts)", "[all]"}, { "enablescript", control_enablescript, true, false, "enable an eventscript", "