Bug 764675 (GLUSTER-2943) - the statfs() call (triggered through 'df') is not done on inode
Summary: the statfs() call (triggered through 'df') is not done on inode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2943
Product: GlusterFS
Classification: Community
Component: fuse
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-25 06:49 UTC by Amar Tumballi
Modified: 2015-12-01 16:45 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTA
Mount Type: fuse
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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


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