Bug 1289063 - quota cli: enhance quota list command to list usage even if the limit is not set
Summary: quota cli: enhance quota list command to list usage even if the limit is not set
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: 3.7.6
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Manikandan
QA Contact:
URL:
Whiteboard:
Depends On: 1284752
Blocks: glusterfs-3.7.7
TreeView+ depends on / blocked
 
Reported: 2015-12-07 11:12 UTC by Manikandan
Modified: 2016-09-20 04:28 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.7.7
Clone Of: 1284752
Environment:
Last Closed: 2016-02-16 08:56:08 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Manikandan 2015-12-07 11:12:27 UTC
+++ This bug was initially created as a clone of Bug #1284752 +++

As of now quota 'list/list-objects' will list the usage only if limit is set.

# gluster volume quota vol1 list-objects /abc
                  Path                   Hard-limit   Soft-limit      Files       Dirs     Available  Soft-limit exceeded? Hard-limit exceeded?
-----------------------------------------------------------------------------------------------------------------------------------------------
/abc                                     Limit not set


Enhance this list command to display usage even if the limit is not set

--- Additional comment from Vijay Bellur on 2015-11-25 02:35:26 EST ---

REVIEW: http://review.gluster.org/12741 (cli/quota: show used_space,(file,dir) count even when quota limit is not set) posted (#1) for review on master by Manikandan Selvaganesh (mselvaga)

--- Additional comment from Vijay Bellur on 2015-11-25 04:36:11 EST ---

REVIEW: http://review.gluster.org/12741 (cli/quota: show used_space,(file,dir) count even when quota limit is not set) posted (#2) for review on master by Manikandan Selvaganesh (mselvaga)

--- Additional comment from Vijay Bellur on 2015-12-04 03:43:31 EST ---

REVIEW: http://review.gluster.org/12741 (cli/quota: show used_space,(file,dir) count even when quota limit is not set) posted (#4) for review on master by Manikandan Selvaganesh (mselvaga)

Comment 1 Vijay Bellur 2015-12-07 11:23:04 UTC
REVIEW: http://review.gluster.org/12893 (quota: show used_space,(file,dir) count even when quota limit is not set) posted (#1) for review on release-3.7 by Manikandan Selvaganesh (mselvaga)

Comment 2 Vijay Bellur 2015-12-10 14:15:07 UTC
COMMIT: http://review.gluster.org/12893 committed in release-3.7 by Kaushal M (kaushal) 
------
commit e0b2bcf34b57f75a244ef88341b0f3d5990c768b
Author: Manikandan Selvaganesh <mselvaga>
Date:   Wed Nov 25 00:04:39 2015 +0530

    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.
    
    Backport of http://review.gluster.org/#/c/12741/
    
    Cherry-picked from commit 608c646cc00e2c1c0b9c87e9fd7cb9e1eb271db2
    > Change-Id: I68b08ec77a583b3c7f39fe4d6b15d3d77adb095a
    > BUG: 1284752
    > Signed-off-by: Manikandan Selvaganesh <mselvaga>
    
    Change-Id: I68b08ec77a583b3c7f39fe4d6b15d3d77adb095a
    BUG: 1289063
    Signed-off-by: Manikandan Selvaganesh <mselvaga>
    Reviewed-on: http://review.gluster.org/12893
    Tested-by: NetBSD Build System <jenkins.org>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Kaushal M <kaushal>

Comment 3 Kaushal 2016-04-19 07:50:21 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.7, please open a new bug report.

glusterfs-3.7.7 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://www.gluster.org/pipermail/gluster-users/2016-February/025292.html
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


Note You need to log in before you can comment on or make changes to this bug.