diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2016-11-08 19:54:11 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2016-11-16 20:31:33 -0800 |
commit | cb90ef1142da5123f3db74b9af0e1c7bcfe3747c (patch) | |
tree | 40bf3ef3cd3cb7f8ed41f5b3094a4996e2285585 /cli | |
parent | 08615b24f9b035e8ec6d1b9d54f2dc95ccb2abc5 (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>
>(cherry picked from commit a35d63050ec7e745a66c1aef8e1c8eb42d7b67a1)
Change-Id: Ice70003f7295d2d8af9877e1ecf6f3c81422b30c
BUG: 1395526
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Reviewed-on: http://review.gluster.org/15852
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: soumya k <skoduri@redhat.com>
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>
Diffstat (limited to 'cli')
-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 86b02877159..6d57290aaaa 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1667,6 +1667,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); |