On Tue, Oct 31, 2006 at 01:55:10AM +0100, KELEMEN Peter wrote:
...
> Filesystem                  Size   Used  Avail  Use%              Mounted on
> /dev/sdb1                  1884M   279M  1509M  14.8 [#         ] /
> Traceback (most recent call last):
>   File "/usr/bin/pydf", line 402, in ?
>     display_mp(mp)
>   File "/usr/bin/pydf", line 267, in display_mp
>     size_f = myformat(size, sizeformat, fs_blocksize)
>   File "/usr/bin/pydf", line 158, in myformat
>     return hfnum(size, 1024)
>   File "/usr/bin/pydf", line 124, in hfnum
>     power = int(log(size)/log(base))
> ValueError: math domain error
> %
> 
> Well, 137+ ZiB is obviously too big for Python.

The bug is probably somewhere else, since this means that either 
filesystem size or block size is reported as negative.
Could you run these commands and send me the output?

stat -f /afs
python -c 'import os; print os.statvfs("/afs")' 

If you have multiple python versions, you can try with all of them.

thanks,

-- 
 -----------------------------------------------------------
| Radovan GarabĂ­k http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__    garabik @ kassiopeia.juls.savba.sk     |
 -----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!

Reply via email to