Bug 795735 - [6d19136de7af9135dd23662f18c3ee544a2888da]: df does not show quota limit for clients which are mounted before enabling quota
Summary: [6d19136de7af9135dd23662f18c3ee544a2888da]: df does not show quota limit for ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: pre-release
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Junaid
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 848244
TreeView+ depends on / blocked
 
Reported: 2012-02-21 12:16 UTC by Rahul C S
Modified: 2013-08-06 22:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 848244 (view as bug list)
Environment:
Last Closed: 2013-02-04 11:25:53 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Rahul C S 2012-02-21 12:16:05 UTC
Description of problem:
root@Dagobah:/data/mounts/mount# df -h
...
dagobah:vol            84G  807M   83G   1% /data/mounts/mount
dagobah:vol           5.0G     0  5.0G   0% /data/mounts/nfs
dagobah:vol           5.0G   30M  5.0G   1% /data/mounts/fuse
root@Dagobah:/data/mounts/mount# gluster volume info
 
Volume Name: vol
Type: Distributed-Replicate
Volume ID: ae583de9-8fef-4c6e-b66f-450dfb587f39
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: dagobah:/data/export1
Brick2: dagobah:/data/export2
Brick3: dagobah:/data/export3
Brick4: dagobah:/data/export4
Options Reconfigured:
performance.stat-prefetch: off
features.limit-usage: /:5GB
features.quota: on

/data/mounts/mount was mounted before quota limit was set, & after setting the limit , df does not show updated limit.

Comment 2 Amar Tumballi 2013-02-04 11:25:53 UTC
df (ie, statvfs()) call is for the mounted filesystem, while quota is for a volume, which would have directory quota enabled, thus, its not fair to make df behave differently depending on the quota value.

df should always not bother about quota, and quota limits should be fetched by different quota command (in our case 'gluster quota limit-usage ').


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