Displaying 4 results from an estimated 4 matches for "_v2v_volsize".
2010 Apr 28
3
Fix 2 issues in ESX transfer
We were seeing 100% failure rates transferring 10G disk images from ESX on a
particular setup. We also weren't spotting the transfer failure, and dying with
a strange error from libguestfs. These 2 patches fix the error check which
should have made it obvious what was failing, and the underlying error.
2010 Feb 18
2
[PATCH 1/2] ESX: Look harder for potential transfer failures
...rn $self->{_v2v_vol};
}
+ die(user_message(__x("Didn't receive full volume. Received {received} of ".
+ "{total} bytes.",
+ received => $self->{_v2v_received},
+ total => $self->{_v2v_volsize})))
+ unless ($self->{_v2v_received} == $self->{_v2v_volsize});
+
if ($r->code == 401) {
die(user_message(__x("Authentication error connecting to ".
"{server}. Used credentials for {username} ".
@@ -185,6 +194,8 @@ sub...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...ve the whole file
- die(user_message(__x("Didn't receive full volume. Received {received} ".
- "of {total} bytes.",
- received => $self->{_v2v_received},
- total => $self->{_v2v_volsize})))
- unless ($self->{_v2v_received} == $self->{_v2v_volsize});
-
- my $vol = $self->{_v2v_vol};
- $vol->close();
- return $vol;
- }
-
- $self->report_error($r);
+ return ($conn, \%h);
}
-sub _get_vol_url
+sub get_content_length
{
- my...
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...e in the target storage pool of the correct size
my $name = $self->{_v2v_volname};
die("create_volume called, but _v2v_volname is not set")
unless (defined($name));
@@ -218,27 +197,9 @@ sub create_volume
my $size = $response->content_length();
$self->{_v2v_volsize} = $size;
- my $vol_xml = "
- <volume>
- <name>$name</name>
- <capacity>$size</capacity>
- </volume>
- ";
-
- my $volume;
- eval {
- $volume = $pool->create_volume($vol_xml);
- };
- die(u...