[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libguestfs
Subject:    Re: [Libguestfs] [PATCH v2v] Add --root (root choice) option.
From:       "Richard W.M. Jones" <rjones () redhat ! com>
Date:       2011-03-22 16:46:22
Message-ID: 20110322164622.GL31124 () amd ! home ! annexia ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic