diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-12-23 04:28:26 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-12-29 10:20:36 -0800 |
commit | 03c791e2d699574dae077d05a171a768bfb28ec3 (patch) | |
tree | 5b3f076df1dccf6f9cbe41737d0de7708cee48ba /xlators/nfs/server/src/mount3.h | |
parent | f0eeffe7b658164fb060a9805aa6cc422aba213b (diff) |
nfs: Support subdirectory exports
Enable exporting directories as separate exports. Even though the directories
wont show up in showmount output, they'll still be mount'able.
The new option:
nfs.export-dirs <on|off>
is enabled by default so that users dont have to wait till this option
is incorporated into the gluster command line.
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1743 (XenServer is not compatible with GlusterNFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1743
Diffstat (limited to 'xlators/nfs/server/src/mount3.h')
-rw-r--r-- | xlators/nfs/server/src/mount3.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/mount3.h b/xlators/nfs/server/src/mount3.h index d4d6d446fc6..ad4f21c98db 100644 --- a/xlators/nfs/server/src/mount3.h +++ b/xlators/nfs/server/src/mount3.h @@ -99,8 +99,10 @@ struct mount3_state { /* Set to 0 if exporting full volumes is disabled. On by default. */ int export_volumes; + int export_dirs; }; +#define gf_mnt3_export_dirs(mst) ((mst)->export_dirs) struct mount3_resolve_state { struct mnt3_export *exp; |