bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX 5.3 df coreutils reportes wrong size - 2.4T limit ?


From: Jodok Ole Muellers
Subject: Re: AIX 5.3 df coreutils reportes wrong size - 2.4T limit ?
Date: Mon, 23 Jun 2008 11:19:10 +0200

Hello,

> it could be that the "somebody" is GNU df.  To find out, please fire
> up a debugger and inspect the result of the statfs system call that
> GNU "df" is issuing.  Or perhaps you can use the AIX equivalent of
> Linux's strace to find out what statfs is doing.

I used "truss", the AIX equivalent of Linux's strace:


GNU
====
address@hidden:/# truss -o gnu_df_truss.txt -f /opt/freeware/bin/df -h /tsmstg
Filesystem            Size  Used Avail Use% Mounted on
/dev/tsmstglv         2.4T -8.3T -5.4T  61% /tsmstg

address@hidden:/# grep statfs gnu_df_truss.txt
381048: statfs("/tsmstg", 0x2FF22250)                   = 0


AIX
====
address@hidden:/# truss -o aix_df_truss.txt -f /bin/df -g /tsmstg
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/tsmstglv  18839.50  10885.47   43%     8156     1% /tsmstg

address@hidden:/# grep statfs aix_df_truss.txt 
499732: statfs64("/tsmstg", 0x2FF21530)                 = 0


The first thing I see is that AIX-df is using statfs64
whereas GNU-df uses 32bit statfs.


6.12.66-c1aab
===============
Same problem with the latest source

address@hidden:/tmp# ./df --version
df (GNU coreutils) 6.12.66-c1aab
...
address@hidden:/tmp# ./df -h /tsmstg
Filesystem            Size  Used Avail Use% Mounted on
/dev/tsmstglv         2.4T -8.3T -5.4T  61% /tsmstg


> If the statfs numbers are wrong, then the problem is in your kernel or
> file system.  If the statfs numbers are right, then the problem is in
> GNU df, and please let us know exactly what statfs returned.


Find attached the whole output of truss and the build log of 
coreutils-6.12.66-c1aab

Thanks for your support,
Jodok

-- 
Mit freundlichen Grüßen
Jodok Ole Müllers

Aschendorff Medien GmbH & Co. KG
An der Hansalinie 1
48163 Münster
Telefon : (0251) 690-9474
Telefax : (0251) 690-902
Email   : mailto:address@hidden
Website : http://www.aschendorff.de

Attachment: aix_df_truss.txt
Description: Text document

Attachment: coreutils-6.12.66-c1aab_built.log
Description: Text Data

Attachment: gnu_df_truss.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]