diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-05-26 10:59:45 +0530 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2015-06-19 09:58:49 -0700 |
commit | 7aaa414c67be460aca3c1c5eed047e3db17bd435 (patch) | |
tree | 944b0cfbaec2e5b28230d36d33c481c2030bb9c3 /xlators/mgmt/glusterd/src/glusterd-utils.h | |
parent | 2fea88d70b2fb9d479f539509ae930ac6f05eb5c (diff) |
glusterd/tier: configure tier daemon during volume restart
rebalance daemon will be running on every tier volume for
promoting/demoting the files. When volume/glusterd is restarted,
then we need to configure the daemon.
Change-Id: Ib565240a70edea2ec8bc1601c52b40c0783491d3
BUG: 1225330
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Signed-off-by: Joseph Fernandes <josferna@redhat.com>
Reviewed-on: http://review.gluster.org/10933
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index 7741087ff74..7bba897629d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -220,6 +220,10 @@ glusterd_brick_stop (glusterd_volinfo_t *volinfo, glusterd_brickinfo_t *brickinfo, gf_boolean_t del_brick); +gf_boolean_t +glusterd_is_tier_daemon_running (glusterd_volinfo_t *volinfo); + + int glusterd_is_defrag_on (glusterd_volinfo_t *volinfo); @@ -357,6 +361,9 @@ glusterd_get_trusted_client_filepath (char *filepath, int glusterd_restart_rebalance (glusterd_conf_t *conf); +void +glusterd_restart_rebalance_for_volume (glusterd_volinfo_t *volinfo); + int32_t glusterd_add_bricks_hname_path_to_dict (dict_t *dict, glusterd_volinfo_t *volinfo); |