search for: get_storage_path

Displaying 7 results from an estimated 7 matches for "get_storage_path".

Did you mean: get_storage_paths
2010 Feb 19
2
[PATCH 1/2] Fix remapping of block devices
...s/VirtV2V/Connection.pm +++ b/lib/Sys/VirtV2V/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 a...
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 May 04
2
[PATCH 1/2] Config: NFC: always create and pass round a Config object
...# Read the config file if one was given -my $config; -$config = Sys::VirtV2V::Config->new($config_file) if defined($config_file); +my $config = Sys::VirtV2V::Config->new($config_file); my $target; if ($output_method eq "libvirt") { @@ -302,7 +301,7 @@ my $storage = $conn->get_storage_paths(); # Create the transfer iso if required my $transferiso; -$transferiso = $config->get_transfer_iso() if (defined($config)); +$transferiso = $config->get_transfer_iso(); if ($output_method eq 'rhev') { $) = "36 36"; -- 1.6.6.1
2010 Jun 17
2
[PATCH] Improve cleanup of libguestfs handle with Sys::VirtV2V::GuestfsHandle
...use Sys::VirtV2V::Connection::LibVirtXML; use Sys::VirtV2V::Target::LibVirt; use Sys::VirtV2V::Target::RHEV; use Sys::VirtV2V::ExecHelper; +use Sys::VirtV2V::GuestfsHandle; use Sys::VirtV2V::GuestOS; use Sys::VirtV2V::UserMessage qw(user_message); @@ -357,18 +358,9 @@ my $storage = $conn->get_storage_paths(); my $transferiso; $transferiso = $config->get_transfer_iso(); -if ($output_method eq 'rhev') { - $) = "36 36"; - $> = "36"; -} - # Open a libguestfs handle on the guest's storage devices -my $g = get_guestfs_handle($storage, $transferiso); - -if (...
2010 Apr 08
1
[PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
..., - path => $config_file, error => $@))) if ($@); -} +$config = Sys::VirtV2V::Config->new($config_file) if defined($config_file); my $target; if ($output_method eq "libvirt") { @@ -312,7 +297,8 @@ exit(1) unless(defined($dom)); my $storage = $conn->get_storage_paths(); # Create the transfer iso if required -my $transferiso = get_transfer_iso($config, $config_file); +my $transferiso; +$transferiso = $config->get_transfer_iso() if (defined($config)); if ($output_method eq 'rhev') { $) = "36 36"; @@ -380,80 +366,6 @@ sub close_gue...
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...@@ Sys::VirtV2V::Connection - Obtain domain 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 di...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...- use Sys::VirtV2V::Connection::LibVirt; + 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::Sour...