From 7510d8edf4e7bea50e0c1f041202f063a5d138af Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 29 Dec 2014 15:32:28 +0530 Subject: mgmt/glusterd: Implement Volume heal enable/disable For volumes with replicate, disperse xlators, self-heal daemon should do healing. This patch provides enable/disable functionality for the xlators to be part of self-heal-daemon. Replicate already had this functionality with 'gluster volume set cluster.self-heal-daemon on/off'. But this patch makes it uniform for both types of volumes. Internally it still does 'volume set' based on the volume type. Change-Id: Ie0f3799b74c2afef9ac658ef3d50dce3e8072b29 BUG: 1177601 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/9358 Reviewed-by: Krishnan Parthasarathi Tested-by: Gluster Build System Reviewed-by: Xavier Hernandez Tested-by: Krishnan Parthasarathi --- cli/src/cli-cmd-volume.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli/src/cli-cmd-volume.c') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 501b5776dec..3035ad4d566 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -2356,10 +2356,11 @@ struct cli_cmd volume_cmds[] = { cli_cmd_volume_status_cbk, "display status of all or specified volume(s)/brick"}, - { "volume heal [full | statistics [heal-count "\ - "[replica ]] |info [healed | heal-failed | "\ - "split-brain]| split-brain {bigger-file |source-brick "\ - " []}]", + { "volume heal [enable | disable | full |" + "statistics [heal-count [replica ]] |" + "info [healed | heal-failed | split-brain] |" + "split-brain {bigger-file |" + "source-brick []}]", cli_cmd_volume_heal_cbk, "self-heal commands on volume specified by "}, -- cgit