summaryrefslogtreecommitdiffstats
path: root/df/README
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-23 12:05:04 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-25 18:58:13 +0000
commit18374b5b7d3154e0b8b8a07e3590f6eee762b58e (patch)
tree13a8254ab4e06a1736761005866fc313182b8e58 /df/README
parent4838ec3326d2970e6afe3cde6b368aeae840b969 (diff)
downloadlibguestfs-18374b5b7d3154e0b8b8a07e3590f6eee762b58e.tar.gz
libguestfs-18374b5b7d3154e0b8b8a07e3590f6eee762b58e.tar.xz
libguestfs-18374b5b7d3154e0b8b8a07e3590f6eee762b58e.zip
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).
Diffstat (limited to 'df/README')
-rw-r--r--df/README17
1 files changed, 17 insertions, 0 deletions
diff --git a/df/README b/df/README
new file mode 100644
index 00000000..f928f2d8
--- /dev/null
+++ b/df/README
@@ -0,0 +1,17 @@
+This is the third rewrite of the virt-df program. It very much
+follows the outline of the Perl program which this replaced in
+libguestfs 1.7.14.
+
+main.c - main program
+
+domains.c - dealing with libvirt, only used if libvirt is around
+ at compile time
+
+df.c - getting the stats from libguestfs
+
+output.c - writing the output, CSV output
+
+virt-df.h - header file
+
+Note this also uses the shared options parsing code in
+'fish/options.[ch]'.