diff options
author | Martin Schwenke <martin@meltin.net> | 2011-08-17 17:42:07 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2011-08-30 09:33:47 +1000 |
commit | 54402cdff4258b77580e702f7718d6d74b155634 (patch) | |
tree | b896275985fac04a3d63434429f230e974daf6fc | |
parent | 2902203900943fa81d42276149471670fa3d6504 (diff) | |
download | samba-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-x | ctdb/config/events.d/60.nfs | 1 |
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 $? |