summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-03-22 06:30:44 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-22 05:17:46 -0700
commite4957b1ae771fa7a1e56cfd25f55deaa527dff4c (patch)
tree6a78d2b097ee14dda95618e726c6b6c7be7e6831
parent384f81cf412c0da9d13a547c0aeb2cd33e59774d (diff)
TOP: remove trailing '/' from brick path
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2573 (trailing '/' with brick name says "volume top unsuccessful" while running 'top' command) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2573
-rw-r--r--cli/src/cli-cmd-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 87792c08c7d..11b9cbcb98b 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -1321,6 +1321,8 @@ cli_cmd_volume_top_parse (const char **words, int wordcount,
"<export-dir-abs-path>", value);
ret = -1;
goto out;
+ } else {
+ cli_path_strip_trailing_slashes (delimiter + 1);
}
ret = dict_set_str (dict, "brick", value);