diff options
author | Martin Schwenke <martin@meltin.net> | 2014-06-16 10:59:20 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-06-20 05:40:16 +0200 |
commit | aac607d7271eb50e776423329f2446a1e33a2641 (patch) | |
tree | 095aac285761f1b1eac3701f9b4bcf38ff5d4c6c /ctdb/lib/replace/test/snprintf.c | |
parent | 6f43896e1258c4cf43401cbfeba24a50de3c3140 (diff) | |
download | samba-aac607d7271eb50e776423329f2446a1e33a2641.tar.gz samba-aac607d7271eb50e776423329f2446a1e33a2641.tar.xz samba-aac607d7271eb50e776423329f2446a1e33a2641.zip |
ctdb-eventscripts: Ensure $GANRECDIR points to configured subdirectory
Check that the $GANRECDIR symlink points to the location specified by
$CTDB_GANESHA_REC_SUBDIR and replace it if incorrect. This handles
reconfiguration and filesystem changes.
While touching this code:
* Create the $GANRECDIR link as a separate step if it doesn't exist.
This means there is only 1 place where the link is created.
* Change some variables names to the style used for local function
variables.
* Remove some "ln failed" error messages. ln failures will be logged
anyway.
* Add -v to various mkdir/rm/ln commands so that these actions are
logged when they actually do something.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jun 20 05:40:16 CEST 2014 on sn-devel-104
Diffstat (limited to 'ctdb/lib/replace/test/snprintf.c')
0 files changed, 0 insertions, 0 deletions