From 4a829e33d9c0d62a710650337406dc25d89cc599 Mon Sep 17 00:00:00 2001 From: Meghana M Date: Mon, 15 Jun 2015 08:43:44 +0000 Subject: NFS-Ganesha: Automatically export vol that was exported before vol restart Consider a volume that is exported via NFS-Ganesha. Stopping this volume will automatically unexport the volume. Starting this volume should automatically export it. Although the logic was already there, there was a bug in it. Fixing the same by introducing a hook script. Also with the new CLI options, the hook script S31ganesha-set.sh is no longer required. Hence, removing the same. Adding a comment to tell the user that one of the CLI commands will take a few minutes to complete. Change-Id: Ibff769ca04fef0c2a129c83fe31fc9c869350e8d BUG: 1231738 Signed-off-by: Meghana Madhusudhan Reviewed-on: http://review.gluster.org/11247 Reviewed-by: soumya k Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- cli/src/cli-cmd-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 2f7885b80eb..f0f428a795b 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -874,7 +874,7 @@ cli_cmd_ganesha_parse (struct cli_state *state, question = "Enabling NFS-Ganesha requires Gluster-NFS to be" " disabled across the trusted pool. Do you " - "still want to continue?"; + "still want to continue?\n"; if (strcmp (value, "enable") == 0) { answer = cli_cmd_get_confirmation (state, question); @@ -885,6 +885,7 @@ cli_cmd_ganesha_parse (struct cli_state *state, goto out; } } + cli_out ("This will take a few minutes to complete. Please wait .."); ret = dict_set_str (dict, "key", key); if (ret) { -- cgit