Bug 1034633 - quota: df displays wrong values of quota if glusterfs mount is on client having 3.3.0.7rhs-1 bits
Summary: quota: df displays wrong values of quota if glusterfs mount is on client havi...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd
Version: 2.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-26 09:06 UTC by Saurabh
Modified: 2016-01-19 06:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-28 06:39:39 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Saurabh 2013-11-26 09:06:34 UTC
Description of problem:


Version-Release number of selected component (if applicable):
server,
glusterfs-3.4.0.44rhs-1

client,
glusterfs-3.3.0.7rhs-1

How reproducible:
always, if the client bits are 3.3.0.7rhs-1


Steps to Reproduce:
1. create a volume, start it
2. quota enable, set some limit on the root of the volume.
3. on client with 3.3.0.7rhs-1, mount the volume via glusterfs.
4. df -h on client

Actual results:
step2, result,
[root@nfs1 ~]# gluster volume quota dist-rep12 list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/alrt                                      2.0GB       80%       2.6GB  0Bytes
/                                        300.0GB       80%     255.9GB  44.1GB

step4 result,
[root@rhsauto011 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_rhsauto011-lv_root
                       43G  1.5G   40G   4% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/vda1             485M   36M  424M   8% /boot
10.70.37.186:dist-rep12
                      1.8T  1.5T  265G  86% /mnt/glusterfs-test
10.70.37.58:/dist-rep12
                      300G  256G   45G  86% /mnt/nfs-test


Issue:- as can be see "/mnt/glusterfs-test" displaying 1.8T and 1.5T as Size and Used field respectively. 

Whereas the nfs mount behaves properly.

Expected results:
quota stats should be same for nfs and glusterfs mount.

Additional info:

Comment 2 Vivek Agarwal 2013-11-28 06:39:39 UTC
Code for deem statfs is not present in the older version of the client


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