summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorMeghana M <mmadhusu@redhat.com>2015-06-15 08:43:44 +0000
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-06-18 10:24:42 -0700
commit0e358fa5f7190f84574824b5629835abf32823a3 (patch)
tree74c25cf8d1d0cfb4ff997f46af50d83d779e0089 /cli/src
parentb7e28c76bc6e34284e54507348c57bda0c32f433 (diff)
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. This is a backport of the patch merged on master, http://review.gluster.org/#/c/11247/ Change-Id: I1c16a978b9e2093a4298ea3024d031fd1a5bb577 BUG: 1232335 Signed-off-by: Meghana Madhusudhan <mmadhusu@redhat.com> Reviewed-on: http://review.gluster.org/11259 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: soumya k <skoduri@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-cmd-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 36f64dd1cb5..e72b8a36b6b 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -879,7 +879,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);
@@ -890,6 +890,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) {