From 03c791e2d699574dae077d05a171a768bfb28ec3 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 23 Dec 2010 04:28:26 +0000 Subject: 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 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 Signed-off-by: Anand V. Avati BUG: 1743 (XenServer is not compatible with GlusterNFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1743 --- xlators/nfs/server/src/mount3.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/nfs/server/src/mount3.h') diff --git a/xlators/nfs/server/src/mount3.h b/xlators/nfs/server/src/mount3.h index d4d6d446f..ad4f21c98 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; -- cgit