summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-cmd-parser.c2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c2
2 files changed, 2 insertions, 2 deletions
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;
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;