summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 66eb9408a6b..9c6414905c3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -6037,6 +6037,12 @@ glusterd_shd_start ()
int
glusterd_quotad_start ()
{
+ return glusterd_nodesvc_start ("quotad", _gf_false);
+}
+
+int
+glusterd_quotad_start_wait ()
+{
return glusterd_nodesvc_start ("quotad", _gf_true);
}
@@ -6416,6 +6422,20 @@ glusterd_check_generate_start_quotad ()
return ret;
}
+/* Blocking start variant of glusterd_check_generate_start_quotad */
+int
+glusterd_check_generate_start_quotad_wait ()
+{
+ int ret = 0;
+
+ ret = glusterd_check_generate_start_service
+ (glusterd_create_quotad_volfile, glusterd_quotad_stop,
+ glusterd_quotad_start_wait);
+ if (ret == -EINVAL)
+ ret = 0;
+ return ret;
+}
+
int
glusterd_nodesvcs_batch_op (glusterd_volinfo_t *volinfo, int (*nfs_op) (),
int (*shd_op) (), int (*qd_op) ())