Rewrite virt-cat in C.

With changes in the core API since 1.5, virt-cat was little
more than a Perl wrapper which did some command line argument
processing.  Thus it could easily be rewritten in C.

This version also shares core command line argument processing
with guestfish and guestmount, so the options have changed
slightly (old-style command line *is* supported).

 virt-cat -a disk.img file [file ...]
 virt-cat -d domname file [file ...]

Several other guestfish options are supported including encryption,
and with the new style multiple files can be downloaded.  See the
man page for details.
This commit is contained in:
Richard W.M. Jones
2010-11-11 14:53:51 +00:00
parent 4d900cdac8
commit d29e9a552f
12 changed files with 590 additions and 225 deletions

View File

@@ -71,6 +71,9 @@ appliance/
capitests/
Automated tests of the C API.
cat/
The 'virt-cat' command and documentation.
contrib/
Outside contributions, experimental parts.
@@ -145,10 +148,7 @@ ruby/
Ruby bindings.
tools/
Command line tools like virt-cat, virt-df, virt-edit and more.
In versions <= 1.0.73 these were all in separate directories
like cat/, df/, edit/, but since then we moved them all into
one directory to simplify builds.
Command line tools like virt-df, virt-edit and more.
src/
Source code to the C library.