From f632a4b1243814c2568c29b18587dc5931792d06 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Mon, 12 Jun 2017 16:53:13 +0530 Subject: 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 Signed-off-by: Pranith Kumar K --- cli/gluster-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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", "'' is incorrect"); MSG("%s\n", GB_CREATE_HELP_STR); -- cgit