Subject: bug#14963: The values for the same file-system differ depending on the file tested

From: Pádraig Brady <[email-masked]>
Date: Tue, 30 Jul 2013 00:20:18 +0100

tag 14963 notabug
close 14963
stop

On 07/29/2013 06:24 PM, Zahariev, Boris wrote:
> Hi Bob
> 
> 
>  ~]#  strace -o df.strace.out1 -v -e trace=statfs df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       656G  501M  655G   1% /nfs/eq-fas3240-001a/vol/a0content1
>  ~]#  strace -o df.strace.out2 -v -e trace=statfs df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       380G  568M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1
> 
>  ~]# cat df.strace.out1
> statfs("/nfs/eq-fas3240-001a/vol/a0content1/rcuvb/", {f_type="NFS_SUPER_MAGIC", f_bsize=65536, f_blocks=10734745, f_bfree=10726732, f_bavail=10726732, f_files=43730919, f_ffree=43720738, f_fsid={0, 0}, f_namelen=255, f_frsize=65536}) = 0
> 
>  ~]# cat df.strace.out2
> statfs("/nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/", {f_type="NFS_SUPER_MAGIC", f_bsize=65536, f_blocks=6225920, f_bfree=6216844, f_bavail=6216844, f_files=43736471, f_ffree=43720729, f_fsid={0, 0}, f_namelen=255, f_frsize=65536}) = 0

So you can see that the system interprets those passed paths and
returns the associated sizes for them.
I suspect different values are returned due to quotas or
some other per directory attribute on your system.

As such, I'm closing this as not specific to du.

thanks for the follow up,
Pádraig.