search for: guest_exists

Displaying 4 results from an estimated 4 matches for "guest_exists".

Did you mean: guestfs_exists
2010 Sep 13
3
[PATCH 1/4] Check that we're not overwriting an existing Libvirt domain
...@@ sub new $self->{uri} = URI->new($uri); $self->{name} = $name; + # Check that the guest doesn't already exist on the target + die(user_message(__x("Domain {name} already exists on the target.", + name => $name))) if ($target->guest_exists($name)); + # Parse uri authority for hostname and username $self->{uri}->authority() =~ /^(?:([^:]*)(?::([^@]*))?@)?(.*)$/ or die(user_message(__x("Unable to parse URI authority: {auth}", diff --git a/lib/Sys/VirtV2V/Target/LibVirt.pm b/lib/Sys/VirtV2V/Target/LibV...
2011 Apr 26
7
[PATCH 1/7] Push $desc creation into Sys::VirtConvert::Converter->convert
...ions(+), 137 deletions(-) diff --git a/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm b/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm index a74f9df..b77ce1d 100644 --- a/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm +++ b/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm @@ -269,7 +269,7 @@ sub guest_exists return 1; } -=item create_guest(desc, meta, config, guestcaps, output_name) +=item create_guest(g, root, meta, config, guestcaps, output_name) Create the guest in the target @@ -278,7 +278,7 @@ Create the guest in the target sub create_guest { my $self = shift; - my ($desc, $...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...$class); - $self->{uri} = URI->new($uri); - $self->{name} = $name; - - # Check that the guest doesn't already exist on the target - die(user_message(__x("Domain {name} already exists on the target.", - name => $name))) if ($target->guest_exists($name)); + $self->{uri} = $uri = URI->new($uri); # Parse uri authority for hostname and username - $self->{uri}->authority() =~ /^(?:([^:]*)(?::([^@]*))?@)?(.*)$/ + $uri->authority() =~ /^(?:([^:]*)(?::([^@]*))?@)?(.*)$/ or die(user_message(__x("Unable t...
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,