[Libguestfs] [PATCH 3/4] tools: Use C API for inspection

Matthew Booth mbooth at redhat.com
Thu Oct 28 13:10:40 UTC 2010


On 28/10/10 14:09, Richard W.M. Jones wrote:
> On Thu, Oct 28, 2010 at 02:05:22PM +0100, Matthew Booth wrote:
>> There are 2 parameters:
>>
>> inspect_and_mount(readonly, allow_multiroot);
>
> Unfortunately that won't work for virt-inspector where it'd have
> to be something along the lines of:
>
> inspect_and_mount ($readonly, $allow_multiroot,
> 		   $callback_for_each_mounted_root);
>
> This is messy.

Fair enough. Everything other than virt-inspector can use a single 
high-level function, though.

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490




More information about the Libguestfs mailing list