diff options
author | Manikandan Selvaganesh <mselvaga@redhat.com> | 2015-09-09 13:03:37 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-09-30 23:54:46 -0700 |
commit | a0514409356c35cd90a0506ab9fafa7462b21bef (patch) | |
tree | 679c00740c99706c186ea773b7dd9e9ed5f3c9eb /cli/src/cli.h | |
parent | 7f0bb9ca8281d022e37e1567ae24ce08436d4cd8 (diff) |
quota : xml output modified to give exact available space in bytes
Currrently, 'gluster v quota <VOLNAME> list' command rounds off the
available space and shows it to the user. Now, 'gluster v quota
<VOLNAME> list --xml' command is modified to show the exact available
space in bytes.
Change-Id: I3772e036a2537c1df12f22cf32dfe4ac7940988f
BUG: 1261404
Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com>
Reviewed-on: http://review.gluster.org/12137
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'cli/src/cli.h')
-rw-r--r-- | cli/src/cli.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/src/cli.h b/cli/src/cli.h index 5671f64ae93..e987c4450c3 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -398,14 +398,15 @@ cli_quota_list_xml_error (cli_local_t *local, char *path, char *errstr); int -cli_quota_xml_output (cli_local_t *local, char *path, char *hl_str, - char *sl_final, void *used, void *avail, - char *sl, char *hl); +cli_quota_xml_output (cli_local_t *local, char *path, int64_t hl_str, + char *sl_final, int64_t sl_num, int64_t used, + int64_t avail, char *sl, char *hl); int cli_quota_object_xml_output (cli_local_t *local, char *path, char *sl_str, - quota_limits_t *limits, quota_meta_t *used_space, - int64_t avail, char *sl, char *hl); + int64_t sl_val, quota_limits_t *limits, + quota_meta_t *used_space, int64_t avail, + char *sl, char *hl); int cli_xml_output_peer_status (dict_t *dict, int op_ret, int op_errno, |