Files
libguestfs/df
Richard W.M. Jones b7bdb63d89 tools: Check for dangling --format parameters (RHBZ#1140894).
In most C tools, virt-sysprep and virt-customize, you have to put the
--format parameter before the corresponding -a parameter.  ie.  The
following is correct:

  guestfish --format qcow2 -a disk1 -a disk2

But the following is incorrect.  The --format parameter is dangling
and prior to this commit would have been silently ignored:

  guestfish -a disk1 -a disk2 --format qcow2

After this change, dangling --format parameters now lead to an error:

  guestfish: --format parameter must appear before -a parameter

In virt-customize, also check that --attach-format parameter appears
before --attach parameter.

Thanks: Lingfei Kong
2014-09-13 10:49:58 +01:00
..
2014-01-02 16:53:34 +00:00
2010-11-25 18:58:13 +00:00
2014-01-02 16:53:34 +00: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]'.