From b198cdd6a47a964a102e8e96dc0de34cd19c2fd5 Mon Sep 17 00:00:00 2001 From: vmallika Date: Sat, 2 Apr 2016 09:20:45 +0530 Subject: quota/cli: display quota usage on path when limit not set When a quota limit is not set, 'quota list ' should still display the usage when a path parameter is specified. Change-Id: Ida12d9c5e348fbd98db4d68d9324c623cbdd3dea BUG: 1323360 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/13893 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Manikandan Selvaganesh Reviewed-by: Raghavendra G Tested-by: Raghavendra G Smoke: Gluster Build System --- cli/src/cli-rpc-ops.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 9ca516e5453..3bc21ff77d5 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -3352,23 +3352,6 @@ gf_cli_print_limit_list_from_dict (cli_local_t *local, char *volname, goto out; } - /* Need to check if any quota limits are set on the volume before trying - * to list them - */ - if (!_limits_set_on_volume (volname, type)) { - snprintf (err_str, sizeof (err_str), "No%s quota configured on " - "volume %s", - (type == GF_QUOTA_OPTION_TYPE_LIST) ? "" : " inode", - volname); - if (global_state->mode & GLUSTER_MODE_XML) { - xml_err_flag = _gf_true; - } else { - cli_out ("quota: %s", err_str); - } - ret = 0; - goto out; - } - if (global_state->mode & GLUSTER_MODE_XML) { ret = cli_xml_output_vol_quota_limit_list_begin (local, op_ret, op_errno, op_errstr); -- cgit