summaryrefslogtreecommitdiffstats
path: root/cli/gluster-block.c
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-06-12 16:53:13 +0530
committerPrasanna Kumar Kalever <pkalever@redhat.com>2017-06-13 06:28:42 +0000
commitf632a4b1243814c2568c29b18587dc5931792d06 (patch)
treeb9366d3dfa9805ce731d04c69d5433fa7c26d5a7 /cli/gluster-block.c
parente87f76a1720d76bad198a0bb6c25d954e3c18a9c (diff)
info: show size in human readable format
Also s/BLOCK CONFIG NODE(S)/EXPORTED NODE(S)/ in the info output $ gluster-block info sample/block NAME: block VOLUME: sample GBID: 6bd70984-be2c-43ac-9e9d-bad04010e42f SIZE: 1.0 GiB HA: 1 PASSWORD: EXPORTED NODE(S): 192.168.0.105 Change-Id: I473b854b939c96b99be8e0b172ac6957b8bc6006 Fixes: #23 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'cli/gluster-block.c')
-rw-r--r--cli/gluster-block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/gluster-block.c b/cli/gluster-block.c
index f2334e6..833f232 100644
--- a/cli/gluster-block.c
+++ b/cli/gluster-block.c
@@ -386,7 +386,7 @@ glusterBlockCreate(int argcount, char **options, int json)
}
/* last arg will be size */
- sparse_ret = glusterBlockCreateParseSize("cli", options[optind]);
+ sparse_ret = glusterBlockParseSize("cli", options[optind]);
if (sparse_ret < 0) {
MSG("%s\n", "'<size>' is incorrect");
MSG("%s\n", GB_CREATE_HELP_STR);