path: root/utils/common.h
diff options
authorPrasanna Kumar Kalever <>2017-06-12 16:53:13 +0530
committerPrasanna Kumar Kalever <>2017-06-13 06:28:42 +0000
commitf632a4b1243814c2568c29b18587dc5931792d06 (patch)
treeb9366d3dfa9805ce731d04c69d5433fa7c26d5a7 /utils/common.h
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): Change-Id: I473b854b939c96b99be8e0b172ac6957b8bc6006 Fixes: #23 Signed-off-by: Prasanna Kumar Kalever <> Signed-off-by: Pranith Kumar K <>
Diffstat (limited to 'utils/common.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/common.h b/utils/common.h
index 21bf855..118d3f0 100644
--- a/utils/common.h
+++ b/utils/common.h
@@ -52,8 +52,8 @@ static const char *const JsonResponseFormatLookup[] = {
enum JsonResponseFormat jsonResponseFormatParse(const char *opt);
-int convertStringToTrillianParse(const char *opt);
+ssize_t glusterBlockParseSize(const char *dom, char *value);
-ssize_t glusterBlockCreateParseSize(const char *dom, char *value);
+char* glusterBlockFormatSize(const char *dom, size_t bytes);
# endif /* _COMMON_H */