mogstored and df(1) arguments

Eric Hodel drbrain at segment7.net
Thu Mar 9 00:28:34 UTC 2006


mogstored has a callback to get disk usage that invokes df like this:

`df -k -l -P $path/$devnum`

Which is followed shortly after by these comments:

total     => $total,  # integer: total KiB blocks
used      => $used,   # integer: used KiB blocks
available => $avail,  # integer: available KiB blocks

-k specifies 1024-byte blocks, but -P specifies POSIX mode which uses  
512-byte blocks.  It appears that the -P wins since it comes last.

I suspect the comments are wrong.

-- 
Eric Hodel - drbrain at segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com




More information about the mogilefs mailing list