df: Rewrite virt-df in C.

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).
This commit is contained in:
Richard W.M. Jones
2010-11-23 12:05:04 +00:00
parent 4838ec3326
commit 18374b5b7d
17 changed files with 1584 additions and 676 deletions

View File

@@ -84,6 +84,9 @@ csharp/
daemon/
The daemon that runs inside the guest and carries out actions.
df/
'virt-df' command and documentation.
examples/
The examples.