From df26c5e162b2ff413ff551119346e239df5ed663 Mon Sep 17 00:00:00 2001 From: Joseph Fernandes Date: Fri, 4 Jul 2014 11:45:03 +0530 Subject: glusterd/snapshot: Fix CLI msg for snap limit set Change of message from "will lead to deletion of snaps" to "Will limit creation of new snaps" when setting the snapshot limits. Change-Id: I4732555bb35d3ad30c2cef6ea6c7da42a8edf35d BUG: 1116263 Signed-off-by: Joseph Fernandes Reviewed-on: http://review.gluster.org/8236 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- cli/src/cli-cmd-parser.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 84450a8f352..da60cde66d9 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -31,21 +31,26 @@ struct snap_config_opt_vals_ snap_confopt_vals[] = { {.op_name = "snap-max-hard-limit", .question = "Changing snapshot-max-hard-limit " - "will lead to deletion of snapshots " + "will limit the creation of new snapshots " "if they exceed the new limit.\n" "Do you want to continue?" }, {.op_name = "snap-max-soft-limit", - .question = "Changing snapshot-max-soft-limit " - "will lead to deletion of snapshots " - "if they exceed the new limit.\n" - "Do you want to continue?" + .question = "If Auto-delete is enabled, snap-max-soft-limit will" + " trigger deletion of oldest snapshot, on the " + "creation of new snapshot, when the " + "snap-max-soft-limit is reached.\n" + "Do you want to change the snap-max-soft-limit?" }, {.op_name = "both", - .question = "Changing snapshot-max-hard-limit & " - "snapshot-max-soft-limit will lead to " - "deletion of snapshots if they exceed " - "the new limit.\nDo you want to continue?" + .question = "Changing snapshot-max-hard-limit " + "will limit the creation of new snapshots " + "if they exceed the new snapshot-max-hard-limit.\n" + "If Auto-delete is enabled, snap-max-soft-limit will" + " trigger deletion of oldest snapshot, on the " + "creation of new snapshot, when the " + "snap-max-soft-limit is reached.\n" + "Do you want to continue?" }, {.op_name = NULL, } -- cgit