Bug 1269372 - rm -rf on /run/gluster/vol/* shows a plain header
Summary: rm -rf on /run/gluster/vol/* shows a plain header
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: mainline
Hardware: All
OS: All
medium
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-07 07:02 UTC by Manikandan
Modified: 2016-09-20 04:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-11-23 11:16:12 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Manikandan 2015-10-07 07:02:42 UTC
Description of problem:
Doing rm -rf on /run/gluster/vol/* shows a plain header. It actually removes all the directories created under the mount point. After the 'rm' command when one gives 'gluster v quota vol list/list-objects' command it should show "No inode-quota/quota configured on vol".

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


How reproducible:
Every time


Steps to Reproduce:
1.Set limit-objects on a directory (say /run/gluster/vol/dir)
2. Create files under the quota limit directory
3. do rm -rf /<mountpoint>/* (here rm -rf /run/gluster/vol/*)
4. Issue 'gluster v quota vol list-objects'

Actual results:
It shows a plain header of quota list/list-objects


Expected results:
It should show "No inode-quota/quota configured on vol".

Additional info:

Comment 1 Manikandan 2015-11-23 11:06:49 UTC
With the latest build, it does not show a plain header, instead, nothing is shown. After an rm -rf on /<mount point>/* is given, it would be better to show "No inode-quota/quota configured on <volname>" with quota list/list-objects command.

Comment 2 Manikandan 2015-11-23 11:16:12 UTC
If the file is removed with rm -rf, quota.conf will only have the gfid on which limit is set but the file will not be present in the backend. So it is not possible to fix it(cleanup the quota xattr).


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