if [ -n "$CTDB_NFS_STATE_MNT" ]; then
export CTDB_NFS_STATE_MNT
fi
+ if [ -n "$CTDB_NFS_EXPORTS_FILE" ]; then
+ export CTDB_NFS_EXPORTS_FILE
+ fi
nfs_callout_cache="${_state_dir}/nfs_callout_cache"
nfs_callout_cache_callout="${nfs_callout_cache}/CTDB_NFS_CALLOUT"
# NFS exports file. Some code below keeps a cache of output derived
# from exportfs(8). When this file is updated the cache is invalid
# and needs to be regenerated.
-#
-# To change the file, edit the default value below. Do not set
-# CTDB_NFS_EXPORTS_FILE - it isn't a configuration variable, just a
-# hook for testing.
nfs_exports_file="${CTDB_NFS_EXPORTS_FILE:-/var/lib/nfs/etab}"
-# As above, edit the default value below. CTDB_NFS_DISTRO_STYLE is a
-# test variable only.
+# Do not set CTDB_NFS_DISTRO_STYLE - it isn't a configuration
+# variable, just a hook for testing. To change the style, edit the
+# default value below.
nfs_distro_style="${CTDB_NFS_DISTRO_STYLE:-systemd-redhat}"
# As above, edit the default value below. CTDB_SYS_ETCDIR is a
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ CTDB_NFS_EXPORTS_FILE=<parameter>FILE</parameter>
+ </term>
+ <listitem>
+ <para>
+ Set FILE as the path of the file containing NFS exports,
+ for use by the NFS callout (see CTDB_NFS_CALLOUT,
+ above). This is used for share checks when
+ CTDB_NFS_SKIP_SHARE_CHECK is not set to "yes". This is
+ most useful with NFS-Ganesha, since it supports
+ configuration include files and exports may be stored in
+ a separate file.
+ </para>
+ <para>
+ Default is <filename>/var/lib/nfs/etab</filename> for
+ <filename>nfs-linux-kernel-callout</filename>,
+ <filename>/etc/ganesha/ganesha.conf</filename> for
+ <filename>nfs-ganesha-callout</filename>.
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term>
CTDB_NFS_SKIP_SHARE_CHECK=yes|no
state_fs="${CTDB_NFS_STATE_FS_TYPE:-gpfs}"
state_dir="${CTDB_NFS_STATE_MNT}" # No sane default.
+# Location of exports file
+nfs_exports_file="${CTDB_NFS_EXPORTS_FILE:-/etc/ganesha/ganesha.conf}"
+
# To change the following, edit the default values below. Do not set
# these - they aren't configuration variables, just hooks for testing.
-nfs_exports_file="${CTDB_NFS_EXPORTS_FILE:-/etc/ganesha/ganesha.conf}"
nfs_service="${CTDB_NFS_SERVICE:-nfs-ganesha}"
ganesha_rec_subdir=${CTDB_GANESHA_REC_SUBDIR:-.ganesha}
procfs=${PROCFS_PATH:-/proc}