summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2015-01-07 11:14:31 +0530
committerVijay Bellur <vbellur@redhat.com>2015-03-24 07:56:32 -0700
commit84db9f8271f150fbb6024186f7f681e941731280 (patch)
treec9a3fe9dceeac5f00714362af4c7f6c706b539b2 /xlators/mgmt/glusterd/src/glusterd-svc-helper.c
parenta37f3ca2b286732fff18f0b0897d8bb1713c89b7 (diff)
mgmt/glusterd: generate volfile for BitD
* Implement the skeleton of bit-rot xlator. Original-Author: Raghavendra Bhat <raghavendra@redhat.com> Signed-off-by: Venky Shankar <vshankar@redhat.com> Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Signed-off-by: Anand Nekkunti <anekkunt@redhat.com> Change-Id: If33218bdc694f5f09cb7b8097c4fdb74d7a23b2d BUG: 1170075 Reviewed-on: http://review.gluster.org/9710 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-svc-helper.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-svc-helper.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-svc-helper.c b/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
index f17f34c3530..39384545c86 100644
--- a/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
+++ b/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
@@ -17,6 +17,7 @@
#include "glusterd-shd-svc.h"
#include "glusterd-quotad-svc.h"
#include "glusterd-nfs-svc.h"
+#include "glusterd-bitd-svc.h"
int
glusterd_svcs_reconfigure (glusterd_volinfo_t *volinfo)
@@ -50,6 +51,10 @@ glusterd_svcs_reconfigure (glusterd_volinfo_t *volinfo)
ret = glusterd_quotadsvc_reconfigure ();
if (ret)
goto out;
+
+ ret = glusterd_bitdsvc_reconfigure ();
+ if (ret)
+ goto out;
out:
return ret;
}
@@ -78,6 +83,10 @@ glusterd_svcs_stop ()
ret = glusterd_svc_stop (&(priv->quotad_svc), SIGTERM);
if (ret)
goto out;
+
+ ret = glusterd_svc_stop (&(priv->bitd_svc), SIGTERM);
+ if (ret)
+ goto out;
out:
return ret;
}
@@ -118,6 +127,13 @@ glusterd_svcs_manager (glusterd_volinfo_t *volinfo)
ret = 0;
if (ret)
goto out;
+
+ ret = conf->bitd_svc.manager (&(conf->bitd_svc), volinfo,
+ PROC_START_NO_WAIT);
+ if (ret == -EINVAL)
+ ret = 0;
+ if (ret)
+ goto out;
out:
return ret;
}