statvfs() weirdness on alpha (RH-7.2 and CentOS-4.2)
Sergey Tikhonov
tsv at solvo.ru
Fri Nov 11 14:00:48 UTC 2005
Bert de Bruijn wrote:
>
> Somehow I get very strange readings from statvfs() on Alpha.
>
> On Intel
> $ python
>
>>>> import os
>>>> print os.statvfs('/')
>>>
> (4096, 4096, 1033182L, 234938L, 182454L, 525888L, 471255L, 471255L, 0,
> 255)
>
> is correct. "df" with the same blocksize shows the same values
> $ df -B 4096 /
> Filesystem 4K-blocks Used Available Use% Mounted on
> /dev/hdd1 1033182 798244 182454 82% /
>
> But on Alpha
> $ python
>
>>>> import os
>>>> print os.statvfs('/')
>>>
> (1024, 1024, 738193209530565, 551989197028090, 469096328178340, 0, 0,
> 255, 0, 0)
>
> that can't be right, the whole / partition is only 500 MB:
> $ df -B 1024 /
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda2 497861 325987 146170 70% /
>
> 469096328178340 is not an integer multiple of 146170.
>
>
> BTW, this is not a python problem, perl Filesys::Statvfs has the same
> issues.
>
>
> Can anybody shed a light on this ?
It seems that it is a problem with python and perl since pure C call to
glibc function returns correct values.
I'll check out since this doen't work in AC2 too.
Thanks,
--
Sergey Tikhonov
Solvo Ltd.
tsv at solvo.ru
More information about the axp-list
mailing list