diff options
author | Vijaikumar M <vmallika@redhat.com> | 2014-03-25 13:08:37 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-25 01:18:18 -0700 |
commit | b8d3a5f7dcd048dfdfeff2f3d0155d6103041be0 (patch) | |
tree | 31cef83a5ea4544340d6f903056dc7c36b27250e /xlators/mgmt | |
parent | 123db32a53f7e2f99c0d63b368ed8a8ee6b41f62 (diff) |
glusterd/snapshot: Correct the error message when the snapshot name is
more than 255 characters
Change-Id: Iaab6889a86ab39fa73eebf30dc08af98d5a774bc
BUG: 1078166
Signed-off-by: Vijaikumar M <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/7296
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index 5759bded4..1115ddae5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -2245,7 +2245,7 @@ glusterd_handle_snapshot_create (rpcsvc_request_t *req, glusterd_op_t op, } if (strlen(snapname) >= GLUSTERD_MAX_SNAP_NAME) { - snprintf (err_str, len, "Snapshot name too long"); + snprintf (err_str, len,"snapname cannot exceed 255 characters"); gf_log (this->name, GF_LOG_ERROR, "%s", err_str); ret = -1; goto out; |