For background on this change, see:
https://rwmj.wordpress.com/2015/12/06/inspection-now-with-added-prolog/
v2 was previously posted here:
https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html
To test this patch series on a real guest, you can do:
$ ./run guestfish -v -x -a /var/tmp/centos-6.img
<fs> run
<fs> debug sh "guestfs-inspection --verbose"
v2 -> v3:
- Rebase on top of upstream libguestfs.
- Allow prologue and epilogue C code.
- Minor cleanups.
Rich.