launch: Store drive information in guestfs_h
authorMatthew Booth <mbooth@redhat.com>
Mon, 17 Oct 2011 14:28:47 +0000 (15:28 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 19 Oct 2011 15:26:42 +0000 (16:26 +0100)
commitf1041e912b72116d66274d2f15e50ce34a9531fd
tree8b7d72acd49f65b37e9906dd3d602135d05fa8ee
parent472f02d08b077a5c1ee233d9dcef92ac9b09d4ae
launch: Store drive information in guestfs_h

This is a NFC on its own, but provides a place-holder for drive metadata which
can be used after launch.

Fixes by RWMJ:

 - Fix the tests: this requires a new internal function 'debug-drives'
   that dumps out the g->drives information so it can be checked in
   two of the tests.  Previously these tests used 'debug-cmdline'.

 - Test file existence / use_cache_off in the add_drive_opts function,
   not when launching qemu in the child process.

 - Call free along error paths.

 - Add comments.
generator/generator_actions.ml
regressions/test-add-domain.sh
regressions/test-guestfish-d.sh
src/guestfs-internal.h
src/guestfs.c
src/launch.c
src/virt.c