From a0514409356c35cd90a0506ab9fafa7462b21bef 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. Change-Id: I3772e036a2537c1df12f22cf32dfe4ac7940988f BUG: 1261404 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/12137 Tested-by: NetBSD Build System Reviewed-by: Vijaikumar Mallikarjuna Reviewed-by: Raghavendra G Reviewed-by: Kaushal M --- cli/src/cli-rpc-ops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/src/cli-rpc-ops.c') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index c160339cb12..04ad4f8ae9e 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2935,9 +2935,9 @@ print_quota_list_usage_output (cli_local_t *local, char *path, int64_t avail, sl_val = gf_uint64_2human_readable (sl_num); if (global_state->mode & GLUSTER_MODE_XML) { - ret = cli_quota_xml_output (local, path, hl_str, - sl_str, used_str, - avail_str, sl ? "Yes" : "No", + ret = cli_quota_xml_output (local, path, limits->hl, + sl_str, sl_num, used_space->size, + avail, sl ? "Yes" : "No", hl ? "Yes" : "No"); if (ret) { gf_log ("cli", GF_LOG_ERROR, "Failed to " @@ -2976,8 +2976,8 @@ print_quota_list_object_output (cli_local_t *local, char *path, int64_t avail, int64_t sl_val = sl_num; if (global_state->mode & GLUSTER_MODE_XML) { - ret = cli_quota_object_xml_output (local, path, sl_str, limits, - used_space, avail, + ret = cli_quota_object_xml_output (local, path, sl_str, sl_val, + limits, used_space, avail, sl ? "Yes" : "No", hl ? "Yes" : "No"); if (ret) { -- cgit