diff options
author | Masatake YAMATO <yamato@redhat.com> | 2011-03-07 08:18:51 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-03-07 09:23:04 -0500 |
commit | c7427b57e2be8ef0d57ad0618d4590c062b130f5 (patch) | |
tree | 211953512d26e3ea86afce979712439e43b6dd1d /support | |
parent | edb9b7f2ab9806afb9af31eabeb505fe454c51df (diff) | |
download | nfs-utils-c7427b57e2be8ef0d57ad0618d4590c062b130f5.tar.gz nfs-utils-c7427b57e2be8ef0d57ad0618d4590c062b130f5.tar.xz nfs-utils-c7427b57e2be8ef0d57ad0618d4590c062b130f5.zip |
Read /etc/exports.d/*.export as extra export files
This patch adding a capability to read /etc/exports.d/*.exports as
extra export files to exportfs.
If one wants to add or remove an export entry in a script, currently
one may have to use sed or something tool for adding or removing the
line for the entry in /etc/exports file.
With the patch, adding and removing an entry from a script is much
easier.
cat<<EOF... or mv can be used for adding. rm can be used for removing.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support')
-rw-r--r-- | support/include/nfslib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/support/include/nfslib.h b/support/include/nfslib.h index 53ece0e..cee826b 100644 --- a/support/include/nfslib.h +++ b/support/include/nfslib.h @@ -25,6 +25,12 @@ #ifndef _PATH_EXPORTS #define _PATH_EXPORTS "/etc/exports" #endif +#ifndef _PATH_EXPORTS_D +#define _PATH_EXPORTS_D "/etc/exports.d" +#endif +#ifndef _EXT_EXPORT +#define _EXT_EXPORT ".exports" +#endif #ifndef _PATH_IDMAPDCONF #define _PATH_IDMAPDCONF "/etc/idmapd.conf" #endif |