[Bugs] [Bug 1323490] New: quota/cli: quota list with path not working when limit is not set

bugzilla at redhat.com bugzilla at redhat.com
Sun Apr 3 15:09:53 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1323490

            Bug ID: 1323490
           Summary: quota/cli: quota list with path not working when limit
                    is not set
           Product: GlusterFS
           Version: 3.7.10
         Component: quota
          Assignee: bugs at gluster.org
          Reporter: vmallika at redhat.com
                CC: bugs at gluster.org
        Depends On: 1323360



+++ This bug was initially created as a clone of Bug #1323360 +++

When a quota limit is not set, 'quota list <path>' should still display the
usage when a path parameter is specified.

# gluster volume quota vol1 list /
quota: No quota configured on volume vol1

# g;uster volume quota vol1 list-objects /
quota: No inode quota configured on volume vol1


We have specified a path '/' in quota list command and we are getting error 'No
quota configured'

Expected result:
# gluster volume quota vol1 list-objects /
                  Path                   Hard-limit   Soft-limit      Files    
  Dirs     Available  Soft-limit exceeded? Hard-limit exceeded?
-----------------------------------------------------------------------------------------------------------------------------------------------
/                                              N/A       N/A          1        
 3         N/A             N/A                  N/A


# gluster volume quota vol1 list /
                  Path                   Hard-limit  Soft-limit      Used 
Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/                                           N/A        N/A          1.0MB      
N/A             N/A                N/A

--- Additional comment from Vijaikumar Mallikarjuna on 2016-04-01 23:53:58 EDT
---

Here is the test-case:
1) create volume
2) enable quota, but do not set any limits
3) create some files
4) execute quota list with path specified at the end
   #gluster volume quota vol1 list /
   #gluster volume quota vol1 list-objects /

--- Additional comment from Vijay Bellur on 2016-04-01 23:57:06 EDT ---

REVIEW: http://review.gluster.org/13893 (quota/cli: display quota usage on path
when limit not set) posted (#1) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1323360
[Bug 1323360] quota/cli: quota list with path not working when limit is not
set
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list