From: Jose A. Rivera Date: Tue, 3 May 2016 06:53:07 +0000 (-0500) Subject: ctdb-scripts: Section off GPFS-specific functionality in nfs-ganesha-callout X-Git-Tag: tdb-1.3.10~1132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83226d98e59b17b99533f3298420675618bb663e;p=thirdparty%2Fsamba.git ctdb-scripts: Section off GPFS-specific functionality in nfs-ganesha-callout Signed-off-by: Jose A. Rivera Reviewed-by: Martin Schwenke --- diff --git a/ctdb/doc/examples/nfs-ganesha-callout b/ctdb/doc/examples/nfs-ganesha-callout index 06d08ad00e3..7351e346164 100755 --- a/ctdb/doc/examples/nfs-ganesha-callout +++ b/ctdb/doc/examples/nfs-ganesha-callout @@ -51,6 +51,12 @@ nfs_service="${CTDB_NFS_SERVICE:-nfs-ganesha}" ganesha_rec_subdir=${CTDB_GANESHA_REC_SUBDIR:-.ganesha} procfs=${PROCFS_PATH:-/proc} +case $state_fs in + gpfs) + GANRECDIR="/var/lib/nfs/ganesha" + ;; +esac + ################################################## @@ -128,8 +134,6 @@ service_start () ################################################## # Nitty gritty - monitoring and IP handling -GANRECDIR="/var/lib/nfs/ganesha" - # Check that a symlink exists, create it otherwise. # Usage: check_ln check_ln () @@ -170,10 +174,15 @@ create_ganesha_recdirs () echo "startup $state_fs not ready" exit 0 fi - _mntpt=$(echo "$_mounts" | sort | awk 'NR == 1 {print $3}') - _link_dst="${_mntpt}/${ganesha_rec_subdir}" - mkdir -vp "$_link_dst" - check_ln "$_link_dst" "$GANRECDIR" + + case $state_fs in + gpfs) + _mntpt=$(echo "$_mounts" | sort | awk 'NR == 1 {print $3}') + _link_dst="${_mntpt}/${ganesha_rec_subdir}" + mkdir -vp "$_link_dst" + check_ln "$_link_dst" "$GANRECDIR" + ;; + esac } service_check ()