From b8d3a5f7dcd048dfdfeff2f3d0155d6103041be0 Mon Sep 17 00:00:00 2001 From: Vijaikumar M Date: Tue, 25 Mar 2014 13:08:37 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/7296 Reviewed-by: Avra Sengupta Reviewed-by: Rajesh Joseph Tested-by: Rajesh Joseph --- cli/src/cli-cmd-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/src') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 0a2bb5318..d25bf45a3 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -2847,7 +2847,7 @@ cli_snap_create_parse (dict_t *dict, const char **words, int wordcount, if (strlen(words[cmdi]) >= GLUSTERD_MAX_SNAP_NAME) { cli_err ("snapshot create: failed: snapname cannot exceed " - "256 characters."); + "255 characters."); gf_log ("cli", GF_LOG_ERROR, "Snapname too long"); goto out; -- cgit