From bb02cfb56ae08f56df4452c2b948fa962ae1212b Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 15 May 2014 11:50:53 +0530 Subject: cluster/afr: Don't support heal info healed/heal-failed commands Change-Id: Iecfd3150e4f4e795e3403bcb1ac56340759a37d0 BUG: 1098027 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7766 Tested-by: Gluster Build System Reviewed-by: Ravishankar N Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-ops.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index fd19b78b912..1eff081516e 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -1398,6 +1398,16 @@ glusterd_op_stage_heal_volume (dict_t *dict, char **op_errstr) } switch (heal_op) { + case GF_AFR_OP_HEALED_FILES: + case GF_AFR_OP_HEAL_FAILED_FILES: + ret = -1; + snprintf (msg, sizeof (msg),"Command not supported. " + "Please use \"gluster volume heal %s info\" " + "and logs to find the heal information.", + volname); + *op_errstr = gf_strdup (msg); + goto out; + case GF_AFR_OP_INDEX_SUMMARY: case GF_AFR_OP_STATISTICS_HEAL_COUNT: case GF_AFR_OP_STATISTICS_HEAL_COUNT_PER_REPLICA: -- cgit