summaryrefslogtreecommitdiffstats
path: root/df/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* df: Skip final '/' character when calculating basename.Richard W.M. Jones2011-01-111-0/+2
| | | | | | | | | | Previously it was including the final '/' character when calculating the basename for the -a option eg: Filesystem Size Used Available Use% /Ubuntu1010x64:/dev/sda1 9.4G 2.3G 6.6G 25% With this patch the '/' is not printed.
* df: Fix segfault when using virt-df -a filenameRichard W.M. Jones2010-11-301-0/+2
| | | | | If 'filename' doesn't contain a '/' character then virt-df was calculating NULL as the basename and later segfaulting.
* df: Rewrite virt-df in C.Richard W.M. Jones2010-11-251-0/+306
I have diffed the output from the original virt-df with this new version, and they agree very closely. Some differences: - Old virt-df have a divide-by-zero error in cases where the number of used inodes was 0. New virt-df fixes this. - New virt-df uses gnulib human_readable library which displays numbers to 3 significant figures for -h output (old version used an ad hoc function).