Displaying 4 results from an estimated 4 matches for "is_sparse".
2011 Jan 26
1
[PATCH] Don't use libvirt for volume information when converting with libvirtxml
...sub get_volume
my $self = shift;
my ($path) = @_;
- # Use a libvirt session connection to inspect local volumes
- my $vmm = Sys::Virt->new(uri => 'qemu:///session');
- my $vol = $vmm->get_storage_volume_by_path($path);
-
- my ($name, $format, $size, $usage, $is_sparse, $is_block) =
- parse_libvirt_volinfo($vol, $path);
+ # Use the output of qemu-img to inspect the path
+ open(my $qemuimg, '-|', 'env', 'LANG=C', 'qemu-img', 'info', $path)
+ or die("Unable to execute qemu-img: $!");
+
+ # qem...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...nnections, e.g. scp
- else {
- $transfer = "Sys::VirtV2V::Transfer::LocalCopy";
- }
-
- $self->_storage_iterate($transfer, $target);
+ $self->{vmm} = $vmm;
return $self;
}
-sub _check_shutdown
+sub _get_transfer
{
my $self = shift;
+ my ($path, $is_sparse) = @_;
- my $vmm = $self->{vmm};
- my $domain = $self->_get_domain();
+ my $uri = $self->{uri};
- # Check the domain is shutdown
- die(user_message(__x("Guest {name} is currently {state}. It must be ".
- "shut down first.",
-...
2011 Jan 26
1
[PATCH] Display verbose error message when guest storage isn't found
...er_message(__x("Failed to retrieve 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 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,