onnode: update algorithm for finding nodes file.
authorMartin Schwenke <martin@meltin.net>
Thu, 21 Jan 2010 02:40:03 +0000 (13:40 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 21 Jan 2010 07:52:44 +0000 (18:52 +1100)
commit60aa570aaa77d293b963105b3f605f9625a4594b
treeb6ace939327c4c18565b6f006d73af284d8c8e7a
parent503e4908b3028330bc25dc6de8561dbd53ee6a8d
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