summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kp@gluster.com>2012-01-05 11:21:25 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-05 00:52:19 -0800
commitea275f8cfe8abf5877f67b21afb2c1e6e08f06b7 (patch)
tree1906c0cb4dd9e37c5e8b6977d3d3317f4ae5e4e4
parentc66ced7d876c8c96561724901be52a0a8afd4baa (diff)
glusterd: Fixed add-brick error message.
Change-Id: I9260d5a0203ae2990d37b30bcc7c94c81c1e168e BUG: 770678 Signed-off-by: Krishnan Parthasarathi <kp@gluster.com> Reviewed-on: http://review.gluster.com/2581 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index c7e9b56bc..fadf3a63c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -130,7 +130,7 @@ gd_addbr_validate_stripe_count (glusterd_volinfo_t *volinfo, int stripe_count,
case GF_CLUSTER_TYPE_STRIPE:
case GF_CLUSTER_TYPE_STRIPE_REPLICATE:
if (stripe_count < volinfo->stripe_count) {
- snprintf (err_str, sizeof (err_str),
+ snprintf (err_str, err_len,
"wrong stripe count (%d) given. "
"already have %d",
stripe_count, volinfo->stripe_count);
@@ -202,7 +202,7 @@ gd_addbr_validate_replica_count (glusterd_volinfo_t *volinfo, int replica_count,
case GF_CLUSTER_TYPE_REPLICATE:
case GF_CLUSTER_TYPE_STRIPE_REPLICATE:
if (replica_count < volinfo->replica_count) {
- snprintf (err_str, sizeof (err_str),
+ snprintf (err_str, err_len,
"wrong replica count (%d) given. "
"already have %d",
replica_count, volinfo->replica_count);