search for: get_storage_devices

Displaying 5 results from an estimated 5 matches for "get_storage_devices".

2010 Jun 09
1
[PATCH] Fix cleanup of guest handle when installing with local files
...s = Sys::VirtV2V::GuestOS->new($g, $os, $dom, $config); + # Modify the guest and its metadata + $guestcaps = Sys::VirtV2V::Converter->convert($g, $guestos, + $config, $dom, $os, + $conn->get_storage_devices()); +}; -# Modify the guest and its metadata -my $guestcaps = Sys::VirtV2V::Converter->convert($g, $guestos, - $config, $dom, $os, - $conn->get_storage_devices()); +# If any of the above commands...
2010 Feb 19
2
[PATCH 1/2] Fix remapping of block devices
...V/Connection.pm @@ -38,7 +38,8 @@ Sys::VirtV2V::Connection - Obtain domain metadata $conn = Sys::VirtV2V::Connection::LibVirt->new($uri, $name, $pool); $dom = $conn->get_dom(); - @storage = $conn->get_local_storage(); + $storage = $conn->get_storage_paths(); + $devices = $conn->get_storage_devices(); =head1 DESCRIPTION @@ -53,18 +54,33 @@ directly. Use one of the subclasses: =over -=item get_local_storage +=item get_storage_paths -Return a list of the domain's storage devices. The returned list contains local -paths. +Return an arrayref of local paths to the guest's stora...
2011 Mar 11
2
[PATCH 1/2] Allow reading more data than the reported size of a volume
If a volume is not an exact multiple of 512 bytes, qemu-img will report its size rounded down to a 512 byte boundary. However, when copying, the file is still read until EOF, which will return more data than was expected. This change prevents that causing a failure in itself. The situation is still not resolved, however, as there are still situations where this will cause a failure. For example,
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...metadata use Sys::VirtV2V::Connection::LibVirt; - $conn = Sys::VirtV2V::Connection::LibVirt->new($uri, $name, $pool); + $conn = Sys::VirtV2V::Connection::LibVirt->new($uri, $name, $target); $dom = $conn->get_dom(); $storage = $conn->get_storage_paths(); $devices = $conn->get_storage_devices(); @@ -106,7 +106,7 @@ sub _storage_iterate { my $self = shift; - my ($transfer, $pool) = @_; + my ($transfer, $target) = @_; my $dom = $self->get_dom(); @@ -121,8 +121,8 @@ sub _storage_iterate defined($source) or die("source element has neither dev nor file...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...use Sys::VirtV2V::Connection::LibVirtSource; - $conn = Sys::VirtV2V::Connection::LibVirt->new($uri, $name, $target); + $conn = Sys::VirtV2V::Connection::LibVirtSource->new($uri, $name, $target); $dom = $conn->get_dom(); $storage = $conn->get_storage_paths(); $devices = $conn->get_storage_devices(); =head1 DESCRIPTION -Sys::VirtV2V::Connection describes a connection to a, possibly remote, source of -guest metadata and storage. It is a virtual superclass and can't be instantiated -directly. Use one of the subclasses: +Sys::VirtV2V::Source provides access to a source of guest metadat...