summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorshylesh <shmohan@redhat.com>2012-04-24 02:32:32 -0400
committerVijay Bellur <vijay@gluster.com>2012-04-24 09:42:03 -0700
commitbe2cc2f7ce90b97328d933517ce66169ae89baeb (patch)
treebbb810d637f2d32a4eae95463759624464a02f25 /cli/src
parent19c2d6b3d61e2fcf52e1097de4d70ecbb2966ffd (diff)
cli: Return -1 if fix-layout stop is issued
Change-Id: If2e4b842029a1a720403cbec0c076f3dbf1fc6df BUG: 803971 Signed-off-by: shylesh <shmohan@redhat.com> Reviewed-on: http://review.gluster.com/3216 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@gluster.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-cmd-volume.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 4773ac9f4..81342c8e1 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -781,6 +781,7 @@ cli_cmd_volume_defrag_cbk (struct cli_state *state, struct cli_cmd_word *word,
strcmp (words[4], "force"))) {
cli_usage_out (word->pattern);
parse_error = 1;
+ ret = -1;
goto out;
}