[Bugs] [Bug 1271490] New: rm -rf on /run/gluster/vol/<directory name>/ is not showing quota output header for other quota limit applied directories

bugzilla at redhat.com bugzilla at redhat.com
Wed Oct 14 07:14:04 UTC 2015


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

            Bug ID: 1271490
           Summary: rm -rf on /run/gluster/vol/<directory name>/ is not
                    showing quota output header for other quota limit
                    applied directories
           Product: GlusterFS
           Version: 3.7.6
         Component: quota
          Assignee: bugs at gluster.org
          Reporter: mselvaga at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com
        Depends On: 1269375
            Blocks: 1271178



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

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Create some directories under the mount point and set limits.
2. Remove one directory by issuing rm -rf /run/gluster/vol/dir/
3. Issue gluster v quota vol list/list-objects

Actual results:
gluster v quota vol list/list-objects should show quota output header and then
the list. But it plainly shows the list without a header.
/test                                     5.0MB     80%(4.0MB)   0Bytes   5.0MB
             No                   No



Expected results:

                  Path                   Hard-limit  Soft-limit      Used 
Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/test                                     5.0MB     80%(4.0MB)   0Bytes   5.0MB
             No                   No




Additional info:

--- Additional comment from Vijay Bellur on 2015-10-13 05:09:34 EDT ---

REVIEW: http://review.gluster.org/12345 (cli/quota : rm -rf on
/<mountpoint>/<dir> is not showing quota header) posted (#1) for review on
master by Manikandan Selvaganesh (mselvaga at redhat.com)

--- Additional comment from Vijay Bellur on 2015-10-14 03:07:38 EDT ---

COMMIT: http://review.gluster.org/12345 committed in master by Kaushal M
(kaushal at redhat.com) 
------
commit 00eeb153f4ea473c6636147f6c72c04336128198
Author: Manikandan Selvaganesh <mselvaga at redhat.com>
Date:   Tue Oct 13 14:28:03 2015 +0530

    cli/quota : rm -rf on /<mountpoint>/<dir> is not showing quota header

    Currently, when 'gluster v quota <VOLNAME> list' command is issued
    after an rm -rf on /run/gluster/vol/<directory>, quota output header is
    not shown. It is because the list_count was properly calculated with
    'gluster v quota <VOLNAME> remove /path' and not with an rm -rf. The patch
    fixes this issue.

    Change-Id: I5266a8b0b9322b7db1b9e1d6b0327065931f4bcb
    BUG: 1269375
    Signed-off-by: Manikandan Selvaganesh <mselvaga at redhat.com>
    Reviewed-on: http://review.gluster.org/12345
    Reviewed-by: Vijaikumar Mallikarjuna <vmallika at redhat.com>
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Kaushal M <kaushal at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1269375
[Bug 1269375] rm -rf on /run/gluster/vol/<directory name>/ is not showing
quota output header for other quota limit applied directories
https://bugzilla.redhat.com/show_bug.cgi?id=1271178
[Bug 1271178] rm -rf on /run/gluster/vol/<directory name>/ is not showing
quota output header for other quota limit applied directories
-- 
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