[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Peculiar error in GWorkspace
From: |
Enrico Sersale |
Subject: |
Re: Peculiar error in GWorkspace |
Date: |
Tue, 8 Jan 2002 14:07:36 +0200 (EET) |
On Mon, 7 Jan 2002, Chris B. Vetter wrote:
> Hi,
>
> It doesn't look like it's actually an error in GWorkspace, but there is
> a very peculiar error in File Viewer, with respect to available disk space:
>
> [...]
> :0> df -h
> Filesystem Size Used Avail Capacity Mounted on GWorkspace
> /dev/da0s1a 2.0G 82M 1.7G 4% / 1.72G
> /dev/da1s1b 2.0G 0K 2.0G 0% swap
> /dev/da1s1b 496M 3.0K 456M 0% /tmp 0.45G
> /dev/da2s1e 3.9G 31M 3.6G 1% /var 3.57G
> /dev/da3s1e 3.9G 577M 3.0G 16% /usr 3.04G
> /dev/da4s1e 8.3G 473M 7.2G 6% /usr/local 3.18G huh?
> /dev/da5s1e 8.3G 4.3G 3.3G 56% /usr/ports 3.35G
> /dev/da6s1e 8.3G 226M 7.4G 3% /opt 3.40G huh?
> /dev/da7s1e 33G 8.2G 22G 27% /home 2.08G huh?
> :0>
> [...]
>
> As you can see, it only affects drive da4, da6 and da7, as if larger
> drives cannot be handled correctly, if used and available space differ
> too much, since GWorkspace shows space on disk da5 as supposed to.
>
> Looking at the source in GWorkspace/Viewers/ViewersWin.m,
> -updateInfoString calls [NSFileManager fileSystemAttributesAtPath:],
> which in turn calls GetDiskFreeSpace() - but where the heck is it?
>
> A grep(1) only returns one call in base/Source/NSFileManager.m ...
Actually I can't reproduce this because I've not a big empty partition...
Try to take a look also at fileSizeDescription(), in Functions.m.