1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/doc
Martin Schwenke ddfbd74607 ctdb-doc: Fix example NFS Ganesha recovery directory maintenance logic
This currently fails exactly when it is needed: when there is a
dangling link pointing into an unmounted filesystem.  This happens
because [ -e <dangling-link> ] returns false.  The solution is simply
to remove that check.

Now the first condition in the "if" statement catches the backward
compatibility case where $GANRECDIR used to be a directory.  It will
also catch other problems, such as if a file has been created in this
location.  If nothing exists then it will silently succeed (due to
-f).

The second case catches a symlink pointing to the wrong place (e.g. in
an unmounted filesystem).

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-05-03 04:43:19 +02:00
..
examples ctdb-doc: Fix example NFS Ganesha recovery directory maintenance logic 2016-05-03 04:43:19 +02:00
cluster_mutex_helper.txt ctdb-doc: Document cluster mutex helper API 2016-04-28 13:18:06 +02:00
ctdb-statistics.7.xml ctdb-doc: Add ctdb-statistics manual page 2014-09-12 08:46:15 +02:00
ctdb-tunables.7.xml ctdb-tunables: Add new tunable RecBufferSizeLimit 2016-03-25 03:26:14 +01:00
ctdb.1.xml ctdb-tools: Simplify "ctdb getreclock" output 2016-04-28 09:39:16 +02:00
ctdb.7.xml ctdb-recovery: Recovery lock setting can now include helper command 2016-04-28 09:39:17 +02:00
ctdbd_wrapper.1.xml doc: Major updates to manual pages 2013-10-30 15:37:54 +11:00
ctdbd.1.xml ctdb-recovery: Recovery lock setting can now include helper command 2016-04-28 09:39:17 +02:00
ctdbd.conf.5.xml ctdb-recovery: Recovery lock setting can now include helper command 2016-04-28 09:39:17 +02:00
ltdbtool.1.xml doc: Major updates to manual pages 2013-10-30 15:37:54 +11:00
Makefile ctdb-doc: Add ctdb-statistics manual page 2014-09-12 08:46:15 +02:00
onnode.1.xml ctdb-tools: Drop onnode node specifications for recmaster/lvs/natgw 2016-04-25 10:34:47 +02:00
ping_pong.1.xml doc: Major updates to manual pages 2013-10-30 15:37:54 +11:00
readonlyrecords.txt Spelling correction: exlusive -> exclusive and semantincs -> semantics 2015-07-08 15:54:14 +02:00
recovery-process.txt recoverd: Fix an unclear log message - "Restart recovery process" 2013-07-05 15:52:33 +10:00