summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-cmd-volume.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index d121ac94739..ba4aac49393 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -892,14 +892,23 @@ cli_cmd_volume_attach_tier_cbk (struct cli_state *state,
dict_t *options = NULL;
int sent = 0;
int parse_error = 0;
- gf_answer_t answer = GF_ANSWER_NO;
cli_local_t *local = NULL;
int type = 0;
+ char *question = "Attach tier is recommended only "
+ "for testing purposes in this "
+ "release. Do you want to continue?";
+ gf_answer_t answer = GF_ANSWER_NO;
frame = create_frame (THIS, THIS->ctx->pool);
if (!frame)
goto out;
+ answer = cli_cmd_get_confirmation (state, question);
+ if (GF_ANSWER_NO == answer) {
+ ret = 0;
+ goto out;
+ }
+
ret = cli_cmd_volume_add_brick_parse (words, wordcount, &options, &type);
if (ret) {
cli_usage_out (word->pattern);