[Bugs] [Bug 1255644] New: quota : display the size equivalent to the soft limit percentage in gluster v quota <volname> list* command

bugzilla at redhat.com bugzilla at redhat.com
Fri Aug 21 09:08:27 UTC 2015


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

            Bug ID: 1255644
           Summary: quota : display the size equivalent to the soft limit
                    percentage in gluster v quota <volname> list* command
           Product: GlusterFS
           Version: 3.7.3
         Component: quota
          Severity: medium
          Priority: low
          Assignee: bugs at gluster.org
          Reporter: mselvaga at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com
        Depends On: 1248521



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

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Manikandan on 2015-07-30 08:59:15 EDT ---

Use case 1:

Currently, the "gluster v quota <volname> list <path>" outputs

For eg..,

[root at dhcp35-94 test]# gluster v quota vol1 list
                  Path                   Hard-limit  Soft-limit      Used 
Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/dir                                       5.0MB     80%          0Bytes  
5.0MB              No                   No

Use case 2:

Also for "gluster v quota <volname> list-objects <path>" outputs,

For eg..,

[root at dhcp35-94 test]# gluster v quota vol1 list-objects /dir
                  Path                   Hard-limit   Soft-limit      Files    
  Dirs     Available  Soft-limit exceeded? Hard-limit exceeded?
-----------------------------------------------------------------------------------------------------------------------------------------------
/dir                                            10       80%          0        
 1          9              No                   No


It would be better if we could display the 80% soft limit equivalent value of
the hard limit.

--- Additional comment from Anand Avati on 2015-07-30 09:06:45 EDT ---

REVIEW: http://review.gluster.org/11808 (quota : display the size of soft limit
percentage) posted (#1) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Manikandan on 2015-07-30 09:17:12 EDT ---

With the above patch, 

"gluster v quota <volname> list <path>" command outputs,

[root at dhcp35-94 test]# gluster v quota vol1 list
                  Path                   Hard-limit  Soft-limit      Used 
Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/dir                                       1.0GB     60%(614.4MB)   0Bytes  
1.0GB              No                   No

"gluster v quota <volname> list-objects <path>" command shows,

[root at dhcp35-94 test]# gluster v quota vol1 list-objects /dir
                  Path                   Hard-limit   Soft-limit      Files    
  Dirs     Available  Soft-limit exceeded? Hard-limit exceeded?
-----------------------------------------------------------------------------------------------------------------------------------------------
/dir                                            10       80%(8)          0     
    1          9              No                   No

--- Additional comment from Anand Avati on 2015-07-31 02:05:38 EDT ---

REVIEW: http://review.gluster.org/11808 (quota : display the size of soft limit
percentage) posted (#2) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-02 23:29:14 EDT ---

REVIEW: http://review.gluster.org/11808 (quota : display the size of soft limit
percentage) posted (#3) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-04 09:06:01 EDT ---

REVIEW: http://review.gluster.org/11808 (quota : display the size of soft limit
percentage) posted (#4) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-12 03:29:03 EDT ---

REVIEW: http://review.gluster.org/11808 (quota : display the size of soft limit
percentage) posted (#5) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-12 06:27:58 EDT ---

REVIEW: http://review.gluster.org/11808 (quota :display the size of soft limit
percentage) posted (#6) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-13 01:12:47 EDT ---

REVIEW: http://review.gluster.org/11808 (quota :display the size of soft limit
percentage) posted (#7) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-17 07:08:22 EDT ---

REVIEW: http://review.gluster.org/11808 (quota :display the size of soft limit
percentage) posted (#8) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)

--- Additional comment from Anand Avati on 2015-08-20 07:11:23 EDT ---

REVIEW: http://review.gluster.org/11808 (quota :display the size of soft limit
percentage) posted (#9) for review on master by Manikandan Selvaganesh
(mselvaga at redhat.com)


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1248521
[Bug 1248521] quota : display the size equivalent to the soft limit
percentage in gluster v quota <volname> list* command
-- 
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