Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* statvfs() weirdness on alpha (RH-7.2 and CentOS-4.2)
@ 2005-11-11 11:45 bob
  2005-11-11 14:00 ` tsv
  0 siblings, 1 reply; 12+ messages in thread
From: bob @ 2005-11-11 11:45 UTC (permalink / raw)



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 ?

thanks,
Bert.


-- 
/* Bert de Bruijn          E-mail at home: bert+axp at debruijn.be     */
/* * *  when there was doubt, I ate it up, and spit it out   * * */

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-11-15 16:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-11 11:45 statvfs() weirdness on alpha (RH-7.2 and CentOS-4.2) bob
2005-11-11 14:00 ` tsv
2005-11-14  6:43   ` tsv
2005-11-14  6:48     ` tsv
2005-11-14  9:37       ` oliver
2005-11-14 17:54         ` michal
2005-11-14 19:39           ` tsv
2005-11-14 23:50             ` oliver
2005-11-15 15:13               ` tsv
2005-11-15 15:46                 ` michal
2005-11-15 16:15                   ` tsv
2005-11-15 16:26                     ` michal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox