BSD-compatible, opinionated df attached. Always prints 512-blocks. Guesses high on used counts. Untested in Linux because time.
The -std=c99 patch is to suppress warnings about using the %llu format specifier. It's kept separate in case C99 is undesirable, though. On Mon, Jul 22, 2013 at 9:55 AM, sin <s...@2f30.org> wrote: > On Mon, Jul 22, 2013 at 03:26:09PM +0300, sin wrote: >> Hi all, >> >> This is an initial bare bones df(1) implementation. >> I'm looking for some feedback, I have not put too much thought >> into the code yet (too busy atm). >> >> No manpage yet. > > I should also mention, that this naturally breaks on *BSD. > If we do care about that, we should think of a proper way to > handle this. > > Thanks, > sin >
sbase-bsd-df.patch
Description: Binary data
sbase-stdc99.patch
Description: Binary data