mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. The first step is to replace all guestfs___* (3 underscores) with guestfs_int_*. We've used guestfs_int_* elsewhere already as a prefix for internal identifiers. This is an entirely mechanical change done using: git ls-files | xargs perl -pi.bak -e 's/guestfs___/guestfs_int_/g' Reference: http://stackoverflow.com/a/228797
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]'.