From 54402cdff4258b77580e702f7718d6d74b155634 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 17 Aug 2011 17:42:07 +1000 Subject: 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 (This used to be ctdb commit 1ccdae79b64b236fc27f4653606429d73c9c3595) --- ctdb/config/events.d/60.nfs | 1 + 1 file changed, 1 insertion(+) 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 $? -- cgit