summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorGaurav <gaurav@gluster.com>2011-03-28 05:35:36 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 12:05:58 -0700
commit626247d559f14267762b32cde71d10d69a161601 (patch)
treee7bd3e344eec547d36391630cfe50c423e89d88f /xlators/nfs
parent4954170c7ee17105ab28ef13ca365a3dbe23fdb3 (diff)
NFS : NFS volume access option accept only valid values.
Signed-off-by: Gaurav <gaurav@gluster.com> Signed-off-by: Vijay Bellur <vijay@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')
-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 8df7c13321c..110677370f5 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -765,6 +765,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)"
},