mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-tools: Drop onnode -o option
I don't think anyone uses this and it causes complications. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
b1fc6e435b
commit
90de5e0594
@ -90,15 +90,6 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry><term>-o <parameter>PREFIX</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Causes standard output from each node to be saved into a
|
||||
file with name PREFIX.<replaceable>IP</replaceable>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry><term>-p</term>
|
||||
<listitem>
|
||||
<para>
|
||||
|
@ -34,7 +34,6 @@ Usage: onnode [OPTION] ... <NODES> <COMMAND> ...
|
||||
-f Specify nodes file, overriding default.
|
||||
-i Keep standard input open - the default is to close it.
|
||||
-n Allow nodes to be specified by name.
|
||||
-o <prefix> Save standard output from each node to file <prefix>.<ip>
|
||||
-p Run command in parallel on specified nodes.
|
||||
-P Push given files to nodes instead of running commands.
|
||||
-q Do not print node addresses (overrides -v).
|
||||
@ -61,7 +60,6 @@ ctdb_nodes_file=""
|
||||
parallel=false
|
||||
verbose=false
|
||||
quiet=false
|
||||
prefix=""
|
||||
names_ok=false
|
||||
push=false
|
||||
stdin=false
|
||||
@ -79,7 +77,6 @@ parse_options ()
|
||||
c) current=true ;;
|
||||
f) ctdb_nodes_file="$OPTARG" ;;
|
||||
n) names_ok=true ;;
|
||||
o) prefix="$OPTARG" ;;
|
||||
p) parallel=true ;;
|
||||
q) quiet=true ;;
|
||||
v) verbose=true ;;
|
||||
@ -274,9 +271,7 @@ push()
|
||||
|
||||
stdout_filter ()
|
||||
{
|
||||
if [ -n "$prefix" ] ; then
|
||||
cat >"${prefix}.${n//\//_}"
|
||||
elif $verbose && $parallel ; then
|
||||
if $verbose && $parallel ; then
|
||||
sed -e "s@^@[$n] @"
|
||||
else
|
||||
cat
|
||||
|
Loading…
Reference in New Issue
Block a user