On 09/09/09 12:51, Richard W.M. Jones wrote:
Matt asked me this morning if we could generate guestfish scripts automatically from running programs like virt-v2v. Good idea.
This patch however doesn't do this, but it lays the groundwork for it: In order for us to generate code for any functions which don't go through the daemon, we need to add an indirection to those calls via some generated code. This will allow us to add guestfish tracing at some point in the future.
If you want to debug calls to libguestfs code, then the easiest thing to do is to use ltrace(1). Sample ltrace output is attached.
ACK (as discussed on IRC, conditional on trace too). Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490