From dbd9bd7b2d806163f9bb069ec04e24d9269f769c Mon Sep 17 00:00:00 2001 From: Meghana Madhusudhan Date: Fri, 10 Apr 2015 19:14:42 +0530 Subject: NFS-Ganesha : Fixing HA script invocation and others gluster features.ganesha disable failed invariably. And also, there were problems in unexporting volumes dynamically.Fixed the above problems. Change-Id: I29aa289dc8dc7b39fe0fd9d3098a02097ca8ca0c BUG: 1207629 Signed-off-by: Meghana Madhusudhan Reviewed-on: http://review.gluster.org/10199 Reviewed-by: jiffin tony Thottan Reviewed-by: Kaleb KEITHLEY Tested-by: NetBSD Build System --- xlators/features/ganesha/src/ganesha.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'xlators/features') diff --git a/xlators/features/ganesha/src/ganesha.c b/xlators/features/ganesha/src/ganesha.c index f034fc00d46..a3d392e3ecf 100644 --- a/xlators/features/ganesha/src/ganesha.c +++ b/xlators/features/ganesha/src/ganesha.c @@ -18,6 +18,22 @@ #include "ganesha-mem-types.h" +int32_t +mem_acct_init (xlator_t *this) +{ + int ret = -1; + + if (!this) + return ret; + + ret = xlator_mem_acct_init (this, gf_ganesha_mt_end + 1); + + if (ret != 0) + gf_log (this->name, GF_LOG_WARNING, "Memory accounting" + "init failed"); + + return ret; +} int32_t init (xlator_t *this) -- cgit