diff options
author | Kaushik BV <kaushikbv@gluster.com> | 2010-11-03 05:29:49 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-03 04:25:41 -0700 |
commit | 0fbf226cdeb970f4b5829f92c6d27523f3ef4f04 (patch) | |
tree | d673ef950e3b24ee619455972118095cf35ef83a /xlators/nfs/server/src | |
parent | ba1d55c083a39f56077305037de0b619316b2717 (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')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index c81e48322ab..d546ed3fb14 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) { |