Unify guestfish and guestmount options processing (RHBZ#642932).
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 26 Oct 2010 14:28:28 +0000 (15:28 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 27 Oct 2010 11:04:16 +0000 (12:04 +0100)
commitc66d6f215e8303d4eaf8ccfdb6a58cff04ccc485
tree6a42e95590dffe4fd5a88e1ba52e15ad4a879c92
parentd600342b7d29c0176ff96a7807ebb38303ecb3a6
Unify guestfish and guestmount options processing (RHBZ#642932).

In guestfish, factor out the processing of the options -a, -c,
-d, -i, -m, -n, -r, -v, -V, -x into a separate set of files:
options.c, options.h, inspect.c, virt.c.

Change guestmount so that it uses these same files (from the
../fish directory) to process the same options.

This unifies the handling of these options between the two programs.
It also adds the useful inspection feature to guestmount, so you
can now do:

  guestmount -d Guest -i --ro mnt/
12 files changed:
fish/Makefile.am
fish/fish.c
fish/fish.h
fish/inspect.c
fish/options.c [new file with mode: 0644]
fish/options.h [new file with mode: 0644]
fish/prep.c
fish/virt.c
fuse/Makefile.am
fuse/guestmount.c
fuse/guestmount.pod
po/POTFILES.in