onnode: update algorithm for finding nodes file.
authorMartin Schwenke <martin@meltin.net>
Thu, 21 Jan 2010 02:40:03 +0000 (13:40 +1100)
committerMartin Schwenke <martin@meltin.net>
Thu, 21 Jan 2010 02:40:03 +0000 (13:40 +1100)
commit6b5a5bb62369284585057caf09f05d2d5e3b9927
tree4216a34a0f495405b57232ba77c38bcdb7d55082
parenta9aa2e06774e8cd59a86d3343d3da2a2769561b5
onnode: update algorithm for finding nodes file.

2 changes:

* If a relative nodes file is specified via -f or $CTDB_NODES_FILE but
  this file does not exist then try looking for the file in /etc/ctdb
  (or $CTDB_BASE if set).

* If a nodes file is specified via -f or $CTDB_NODES_FILE but this
  file does not exist (even when checked as per above) then do not
  fall back to /etc/ctdb/nodes ((or $CTDB_BASE if set).  The old
  behaviour was surprising and hid errors.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tools/onnode