summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src
diff options
context:
space:
mode:
authorGaurav <gaurav@gluster.com>2011-03-28 04:30:28 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-29 04:14:44 -0700
commit94a2118801138db92dda0cf74691fea95d7f9d12 (patch)
tree3aabd8e9ab3fa2fc2efa1d3167d3072fcae40a99 /xlators/nfs/server/src
parent61b669c8366bc43e62324bbd0ce381cdbe633b93 (diff)
NFS : Volume access option accepts only valid values.
Signed-off-by: Gaurav <gaurav@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2598 (Volume access option suceeds with any string value) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2598
Diffstat (limited to 'xlators/nfs/server/src')
-rw-r--r--xlators/nfs/server/src/nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 150fa239f39..081414607c2 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -749,6 +749,7 @@ struct volume_options options[] = {
},
{ .key = {"nfs3.*.volume-access"},
.type = GF_OPTION_TYPE_STR,
+ .value = {"read-only", "read-write"},
.description = "Type of access desired for this subvolume: "
" read-only, read-write(default)"
},