diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2016-11-08 19:54:11 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2016-11-15 09:40:40 -0800 |
commit | a35d63050ec7e745a66c1aef8e1c8eb42d7b67a1 (patch) | |
tree | a72fa1b354e8f5c431db4cffda9187826094d129 /cli/src/cli-cmd-parser.c | |
parent | 7947a6dd63979c7638f60d1a0954d9f78fd7df21 (diff) |
nfs/cli : add warning message while enabling gluster nfs
Change-Id: Ice70003f7295d2d8af9877e1ecf6f3c81422b30c
BUG: 1376693
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Reviewed-on: http://review.gluster.org/15805
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r-- | cli/src/cli-cmd-parser.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index d6ac6fd7077..1498f6cb99a 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1666,6 +1666,20 @@ cli_cmd_volume_set_parse (struct cli_state *state, const char **words, goto out; } } + if ((!strcmp (key, "nfs.disable")) && + (!strcmp (value, "off"))) { + question = "Gluster NFS is being deprecated in favor " + "of NFS-Ganesha Enter \"yes\" to continue " + "using Gluster NFS"; + answer = cli_cmd_get_confirmation (state, question); + if (GF_ANSWER_NO == answer) { + gf_log ("cli", GF_LOG_ERROR, "Operation " + "cancelled, exiting"); + *op_errstr = gf_strdup ("Aborted by user."); + ret = -1; + goto out; + } + } } ret = dict_set_int32 (dict, "count", wordcount-3); |