summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
diff options
context:
space:
mode:
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;
}