[Bugs] [Bug 1284752] quota cli: enhance quota list command to list usage even if the limit is not set
bugzilla at redhat.com
bugzilla at redhat.com
Tue Dec 8 12:54:55 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1284752
--- Comment #4 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/12741 committed in master by Kaushal M
(kaushal at redhat.com)
------
commit 72334e2209b8b506f00d5d851bfb5fdc3eb38cf4
Author: Manikandan Selvaganesh <mselvaga at redhat.com>
Date: Wed Nov 25 00:04:39 2015 +0530
cli/quota: show used_space,(file,dir) count even when quota limit is not
set
Problem:
As of now quota 'list/list-objects' will list the usage only if limit is
set for every directory else it will fail with ENOATTR(If inode/inode-quota
is already configured for the first time).
Feature:
With the patch we are enhancing this command to list the usage even
if quota limit is not set but still the user has to configure
inode/inode-quota for the first time.
Example:
Consider we have /client/dir and /client1(absolute path from mount point):
Quota limit is set only on /client. when we try listing /client/dir or
/client1,
it shows "Limit not set".
Fix:
The patch fixes this by showing "used space" in case of list command and
shows "file_count" & "dir_count" in case of list-objects command. This
works
fine with xml output as well.
Change-Id: I68b08ec77a583b3c7f39fe4d6b15d3d77adb095a
BUG: 1284752
Signed-off-by: Manikandan Selvaganesh <mselvaga at redhat.com>
Reviewed-on: http://review.gluster.org/12741
Tested-by: NetBSD Build System <jenkins at build.gluster.org>
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Vijaikumar Mallikarjuna <vmallika at redhat.com>
Reviewed-by: Kaushal M <kaushal at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=EvWFXZHYRy&a=cc_unsubscribe
More information about the Bugs
mailing list