summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2011-08-17 17:42:07 +1000
committerMartin Schwenke <martin@meltin.net>2011-08-30 09:33:47 +1000
commit54402cdff4258b77580e702f7718d6d74b155634 (patch)
treeb896275985fac04a3d63434429f230e974daf6fc
parent2902203900943fa81d42276149471670fa3d6504 (diff)
downloadsamba-54402cdff4258b77580e702f7718d6d74b155634.tar.gz
samba-54402cdff4258b77580e702f7718d6d74b155634.tar.xz
samba-54402cdff4258b77580e702f7718d6d74b155634.zip
Eventscripts - in 60.nfs uniquify the share check directory list
There are sites that have multiple entries for the same export. This optimises the share check in this case. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 1ccdae79b64b236fc27f4653606429d73c9c3595)
-rwxr-xr-xctdb/config/events.d/60.nfs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs
index 87a91df5b5..e8ac61fe43 100755
--- a/ctdb/config/events.d/60.nfs
+++ b/ctdb/config/events.d/60.nfs
@@ -70,6 +70,7 @@ case "$1" in
[ "$CTDB_NFS_SKIP_SHARE_CHECK" = "yes" ] || {
exportfs -v | grep '^/' |
sed -r -e 's@[[:space:]]+[^[:space:]()]+\([^[:space:]()]+\)$@@' |
+ sort -u |
ctdb_check_directories
} || exit $?