patch to fix disk usage numbers on FreeBSD
Eric Hodel
drbrain at segment7.net
Fri Dec 8 19:08:44 UTC 2006
On Dec 8, 2006, at 08:38 , Doug Porter wrote:
> The current version of MogileFS doubles all the disk space numbers on
> FreeBSD due to FreeBSD's df working differently than GNU coreutils df.
> If the -P option follows -k with FreeBSD df the blocksize will be
> 512 bytes. The following patch remedies this problem and seems to
> produce the correct results on both FreeBSD and Linux.
-P and -k are mutually exclusive:
-k Use 1024-byte (1-Kbyte) blocks rather than the
default. Note
that this overrides the BLOCKSIZE specification from
the environ-
ment.
-P Use POSIX compliant output of 512-byte blocks rather
than the
default. Note that this overrides the BLOCKSIZE
specification
from the environment.
So the correct patch should remove one or the other.
--
Eric Hodel - drbrain at segment7.net - http://blog.segment7.net
I LIT YOUR GEM ON FIRE!
More information about the mogilefs
mailing list