Displaying 4 results from an estimated 4 matches for "parse_libvirt_volinfo".
2011 Jan 17
1
[PATCH] Fix subclassing of LibVirtXMLSource
...ff --git a/lib/Sys/VirtV2V/Connection/LibVirtXMLSource.pm b/lib/Sys/VirtV2V/Connection/LibVirtXMLSource.pm
index e62d996..ffb9309 100644
--- a/lib/Sys/VirtV2V/Connection/LibVirtXMLSource.pm
+++ b/lib/Sys/VirtV2V/Connection/LibVirtXMLSource.pm
@@ -30,7 +30,7 @@ use Sys::VirtV2V::Util qw(user_message parse_libvirt_volinfo);
use Locale::TextDomain 'virt-v2v';
- at Sys::VirtV2V::Connection::Source::LibVirtXMLSource::ISA =
+ at Sys::VirtV2V::Connection::LibVirtXMLSource::ISA =
qw(Sys::VirtV2V::Connection::Source);
=pod
--
1.7.3.4
2011 Jan 26
1
[PATCH] Display verbose error message when guest storage isn't found
...ve storage volume {path}:".
+ "{error}",
+ path => $path,
+ error => $@->stringify()));
+ }
($name, $format, $size, $usage, $is_sparse, $is_block) =
parse_libvirt_volinfo($vol);
--
1.7.3.5
2011 Jan 26
1
[PATCH] Don't use libvirt for volume information when converting with libvirtxml
...LSource.pm
@@ -20,13 +20,14 @@ package Sys::VirtV2V::Connection::LibVirtXMLSource;
use strict;
use warnings;
+use File::stat;
use Sys::Virt;
use XML::DOM;
use XML::DOM::XPath;
use Sys::VirtV2V::Connection::Source;
use Sys::VirtV2V::Transfer::Local;
-use Sys::VirtV2V::Util qw(user_message parse_libvirt_volinfo);
+use Sys::VirtV2V::Util qw(user_message);
use Locale::TextDomain 'virt-v2v';
@@ -115,12 +116,45 @@ sub get_volume
my $self = shift;
my ($path) = @_;
- # Use a libvirt session connection to inspect local volumes
- my $vmm = Sys::Virt->new(uri => 'qemu:///se...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...+package Sys::VirtV2V::Connection::LibVirtSource;
+
+use strict;
+use warnings;
+
+use URI;
+use XML::DOM;
+
+use Sys::Virt;
+
+use Sys::VirtV2V;
+use Sys::VirtV2V::Connection::Source;
+use Sys::VirtV2V::Connection::LibVirt;
+use Sys::VirtV2V::Transfer::ESX;
+use Sys::VirtV2V::Util qw(user_message parse_libvirt_volinfo);
+
+use Locale::TextDomain 'virt-v2v';
+
+ at Sys::VirtV2V::Connection::LibVirtSource::ISA =
+ qw(Sys::VirtV2V::Connection::Source Sys::VirtV2V::Connection::LibVirt);
+
+=pod
+
+=head1 NAME
+
+Sys::VirtV2V::Connection::LibVirtSource - Get storage and metadata from libvirt
+
+=head1 SYNO...