mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
The libutils convenience library is a place for code shared between the main library, language bindings and virt tools. Note that the code is statically linked into both the library, each binding and each tool, but this is an improvement because (a) the source is shared and (b) libguestfs.so can export fewer private functions. Currently it contains the cleanup functions, and the functions guestfs___free_string_list function and guestfs___for_each_disk. guestfs___for_each_disk has changed so that it no longer unconditionally sets the error in the guestfs handle. Instead callers can control error handling.
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]'.