On Tue, Mar 22, 2011 at 04:31:09PM +0000, Matthew Booth wrote:
On 22/03/11 15:32, Richard W.M. Jones wrote:
>+ my $i = 1;
>+ foreach (@roots) {
>+ print " [$i] $_\n";
>+ $i++;
>+ }
Can we include any additional information here? I thinking
filesystem label, or a directory listing of / if that's not
available.
With the new API then 'product name' is available from
$g->inspect_get_product_name ($root). For old API this involves
digging through the $os hash. I *think* $oses->{root_dev}->{product_name}.
I prefer to continue rewriting the code to use the new API, at which
point I can add extra detail here too.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top