tools: Specify format of disks (RHBZ#642934,CVE-2010-3851).
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 22 Oct 2010 09:59:53 +0000 (10:59 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 22 Oct 2010 16:45:06 +0000 (17:45 +0100)
commit641ccab6c3b17f1c94676eab99e8baa9cddf5a0b
tree9e77a59ba4a46e1d10cde4370c579dabfef6d9b4
parent44c5ee1163918bd5c9e6aa6c292f0c3bb15b7b25
tools: Specify format of disks (RHBZ#642934,CVE-2010-3851).

Sys::Guestfs::Lib is changed in two ways: firstly we take the format
string from libvirt and pass it to add_drive_opts.  Secondly we allow
an extra format =>  parameter to open_guest which allows the
format to be specified for disk images.

All the tools are changed to add an extra --format parameter allowing
the format to be specified for direct disk images.
inspector/virt-inspector
perl/lib/Sys/Guestfs/Lib.pm
tools/virt-cat
tools/virt-edit
tools/virt-list-filesystems
tools/virt-list-partitions
tools/virt-ls
tools/virt-rescue
tools/virt-tar
tools/virt-win-reg