From df06d94fae1e4a5e93f00c26d4b377bd8d1bd352 Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Wed, 9 Sep 2015 13:03:37 +0530 Subject: quota : xml output modified to give exact available space in bytes Currrently, 'gluster v quota list' command rounds off the available space and shows it to the user. Now, 'gluster v quota list --xml' command is modified to show the exact available space in bytes. Backport of http://review.gluster.org/#/c/12137/ > Change-Id: I3772e036a2537c1df12f22cf32dfe4ac7940988f > BUG: 1261404 > Signed-off-by: Manikandan Selvaganesh Change-Id: I3772e036a2537c1df12f22cf32dfe4ac7940988f BUG: 1267817 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/12267 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Kaushal M --- cli/src/cli.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index 926d7014927..ccf55761870 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -403,14 +403,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, -- cgit