mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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.
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.