search for: signal_exit

Displaying 6 results from an estimated 6 matches for "signal_exit".

2010 Jun 08
3
[PATCH 1/3] Fix RHEV cleanup on unclean shutdown
...t-v2v.pl | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/v2v/virt-v2v.pl b/v2v/virt-v2v.pl index bed69a0..36297ed 100755 --- a/v2v/virt-v2v.pl +++ b/v2v/virt-v2v.pl @@ -214,6 +214,14 @@ Display version number and exit. =cut +$SIG{'INT'} = \&signal_exit; +$SIG{'QUIT'} = \&signal_exit; + +# SIGPIPE will cause an untidy exit of the perl process, without calling +# destructors. We don't rely on it anywhere, as we check for errors when reading +# from or writing to a pipe. +$SIG{'PIPE'} = 'IGNORE'; + # Initialise the m...
2011 Apr 21
1
[PATCH] v2v: Filter out the transfer iso if it's returned by inspect_os()
...y @devices = $g->list_devices(); + $transferdev = pop(@devices); +} + my $guestcaps; my $desc; eval { # Inspect the guest - $desc = inspect_guest($g); + $desc = inspect_guest($g, $transferdev); # Modify the guest and its metadata $guestcaps = @@ -559,9 +566,18 @@ sub signal_exit sub inspect_guest { my $g = shift; + my $transferdev = shift; # Get list of roots, sorted. my @roots = $g->inspect_os (); + + # Filter out the transfer device from the results of inspect_os + # There's a libguestfs bug (fixed upstream) which meant the transfer ISO...
2010 Oct 11
1
[PATCH 1/2] Remove incompletely transferred libvirt volumes
If a user interrupted transfer of data to a libvirt volume, the incomplete data was left in place. This patch causes the volume to be removed. Fixes RHBZ#616728 --- lib/Sys/VirtV2V/Target/LibVirt.pm | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/lib/Sys/VirtV2V/Target/LibVirt.pm b/lib/Sys/VirtV2V/Target/LibVirt.pm index 029e4e2..943b95a 100644 ---
2010 Jun 17
2
[PATCH] Improve cleanup of libguestfs handle with Sys::VirtV2V::GuestfsHandle
...the RHEV target's temporary mount - # directory to be unmounted and deleted prior to exit. - $g = undef; - - # The above undef causes libguestfs's qemu process to be killed. This - # may update $?, so we preserve it here. - $? ||= $retval; - } -} - sub signal_exit { - close_guest_handle(); - exit(1); -} - -sub get_guestfs_handle -{ - my ($storage, $transferiso) = @_; - my $interface = "ide"; - - my $g = open_guest($storage, rw => 1, interface => $interface); - - # Add the transfer iso if there is one - $g->add_drive_r...
2010 Jul 28
3
Create new Sys::VirtV2V::Util
These 2 patches are mostly code motion. They were prompted by an apparent augeas error in BZ 613967 which didn't display useful error message. The error seems to happen in Converter::Linux. GuestOS::RedHat had a handy function which displayed verbose augeas error messages. This function moves into the new module where it can be used by both modules. The second patch is an consequential tidy
2011 Apr 26
7
[PATCH 1/7] Push $desc creation into Sys::VirtConvert::Converter->convert
...-$target->create_guest($desc, $meta, $config, $guestcaps, $output_name); +$g->close(); if($guestcaps->{block} eq 'virtio' && $guestcaps->{net} eq 'virtio') { logmsg NOTICE, __x('{name} configured with virtio drivers.', @@ -561,15 +561,14 @@ sub signal_exit } # Perform guest inspection using the libguestfs core inspection API. -# Returns a hashref ("$desc") which contains the main features from -# inspection. +# Returns the root device of the os to be converted. sub inspect_guest { my $g = shift; my $transferdev = shift;...