diff options
-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); |