Files
libguestfs/perl
Richard W.M. Jones f072a21f3a perl: Don't fail if 'type' (disk format) attribute is missing in libvirt XML (RHBZ#701814).
Old versions of libvirt allowed you to define disks like this:

    <disk type='file' device='disk'>
      <driver name='qemu'/>
      ...

Since the <driver> element does not have a 'type' attribute (which
defines the format), we are supposed to do autodetection, so the
format should be undefined.

However what actually happened was that the code in
Sys::Guestfs::Lib::open_guest received format as an empty string from
the xpath query, causing libguestfs to give an error.

If the xpath query returns the format as an empty string, undefine it.
2012-05-03 12:30:05 +01:00
..
2011-11-08 14:43:07 +00:00
2012-04-26 16:48:47 +01:00
2012-01-18 22:05:02 +00:00
2011-11-08 14:43:07 +00:00

Sys::Guestfs
------------

This directory contains the Perl bindings for the libguestfs API.

The basic libguestfs bindings have the name 'Sys::Guestfs'.

As with all other language bindings, these bindings are generated
automatically.  See generator/ directory.

Sys::Guestfs::Lib
-----------------

Because we use Perl for writing lots of additional tools around
libguestfs, the Perl bindings also contain an extra library of useful
functions, called 'Sys::Guestfs::Lib'.  This extra library is entirely
optional, and only enhances the usefulness of the ordinary libguestfs
API.

One of the features of this library is tighter libvirt integration.