Bug 764675 (GLUSTER-2943)

Summary: the statfs() call (triggered through 'df') is not done on inode
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: fuseAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: anush, gluster-bugs, lakshmipathi, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTA Mount Type: fuse
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2011-05-25 06:49:54 UTC
instead its always done on '/' of the volume. It should honor the inode of the file on which 'statfs()' is issued. If 'statfs()' is issued on a file, it should be getting info from the server where the file exits.

Comment 1 Amar Tumballi 2011-05-31 09:15:05 UTC
fixed by patch http://patches.gluster.com/patch/7257 (committed to mainline).

Comment 2 Lakshmipathi G 2011-07-29 06:59:18 UTC
(In reply to comment #0)
> instead its always done on '/' of the volume. It should honor the inode of the
> file on which 'statfs()' is issued. If 'statfs()' is issued on a file, it
> should be getting info from the server where the file exits.


testing with master "f3c0281d9b4654888a5525b443f1e6090d874725" ,

df on mount point 

# df -h /export/yyy
Filesystem            Size  Used Avail Use% Mounted on
glusterfs#10.1.12.170:/bug
                       761770G   16G   20G  44% /export/yyy


df on a file 

# df -h /export/yyy/hello 
Filesystem            Size  Used Avail Use% Mounted on
glusterfs#10.1.12.170:/bug
                       761751G  8.8G  8.9G  50% /export/yyy