path: root/xlators
diff options
authorSheetal Pamecha <>2019-12-22 22:52:30 +0530
committerAmar Tumballi <>2020-02-03 13:27:37 +0000
commita144cd20745a03f025920ab81265e150e11b3a0a (patch)
treec52ab0153f64d3cdaa041dc66d90a29828e34a1a /xlators
parent34347876bb525e1af19bccafbb753a14b358d3aa (diff)
ec: change error message for heal commands for disperse volume
Currently when we issue a heal statistics or similar commands for disperse volume, it fails with message "Volume is not of type replicate." Adding message "this command is supported for volumes of type replicate" to reflect supportability and better understanding of heal functionality for disperse volumes. fixes: bz#1785998 Change-Id: I9688a9fdf427cb6f657cfd5b8db2f76a6c56f6e2 Signed-off-by: Sheetal Pamecha <>
Diffstat (limited to 'xlators')
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index 849cac4f0d9..1c5a2508d9c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -1803,7 +1803,9 @@ glusterd_handle_heal_cmd(xlator_t *this, glusterd_volinfo_t *volinfo,
if (!glusterd_is_volume_replicate(volinfo)) {
ret = -1;
snprintf(msg, sizeof(msg),
- "Volume %s is not of type "
+ "This command is supported "
+ "for only volume of replicated "
+ "type. Volume %s is not of type "
*op_errstr = gf_strdup(msg);