Files
libguestfs/df
Richard W.M. Jones 8c9a4bc84f common/options: Change drv struct to store drive index instead of device name.
The device name is only used by guestfish (when using the -N option to
prepare drives).  We constructed the device name very naively,
basically ‘sprintf ("/dev/sd%c", next_drive)’.

This stores the device index instead, and only constructs the device
name in guestfish.  Also the device name is constructed properly using
guestfs_int_drive_name so it can cope with #drives > 26.

As a side effect of this change we can remove the extra parameter of
the add_drives macro.

Thanks: Pino Toscano
2017-05-03 19:32:37 +01:00
..
2014-12-11 14:15:00 +00:00
2010-11-25 18:58:13 +00:00
2017-01-03 16:48:21 +01:00

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]'.