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/nfs.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/nfs/server/src/nfs.c') diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index 3291858ef..979fd2fb0 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -764,6 +764,15 @@ struct volume_options options[] = { "restrict exports only to the subdirectories specified" " through this option. Must be an absolute path." }, + { .key = {"nfs3.export-dirs"}, + .type = GF_OPTION_TYPE_BOOL, + .description = "By default, all subvolumes of nfs are exported as " + "individual exports. There are cases where a " + "subdirectory or subdirectories in the volume need to " + "be exported separately. Enabling this option allows " + "any directory on a volumes to be exported separately." + " Directory exports are enabled by default." + }, { .key = {"nfs3.export-volumes"}, .type = GF_OPTION_TYPE_BOOL, .description = "Enable or disable exporting whole volumes, instead " -- cgit