summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs.c
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2010-11-03 05:29:49 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-03 04:25:41 -0700
commit0fbf226cdeb970f4b5829f92c6d27523f3ef4f04 (patch)
treed673ef950e3b24ee619455972118095cf35ef83a /xlators/nfs/server/src/nfs.c
parentba1d55c083a39f56077305037de0b619316b2717 (diff)
mgmt/Glusterd: add nfs.enable-ino32 as an option to set from CLI
Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1972 (xcs get doesn't work with gNFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1972
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
-rw-r--r--xlators/nfs/server/src/nfs.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index c81e48322..d546ed3fb 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -560,6 +560,36 @@ free_nfs:
return nfs;
}
+int
+validate_options (xlator_t *this, dict_t *options, char **op_errstr)
+{
+ char *str=NULL;
+ gf_boolean_t nfs_ino32;
+
+ int ret = 0;
+
+
+
+ ret = dict_get_str (options, "nfs.enable-ino32",
+ &str);
+ if (ret == 0) {
+ ret = gf_string2boolean (str,
+ &nfs_ino32);
+ if (ret == -1) {
+ gf_log (this->name, GF_LOG_WARNING,
+ "'nfs.enable-ino32' takes only boolean"
+ " arguments");
+ *op_errstr = gf_strdup ("Error, should be boolean");
+ ret = -1;
+ goto out;
+ }
+ }
+ ret =0;
+out:
+ return ret;
+
+}
+
int
init (xlator_t *this) {