search for: default_net_map

Displaying 3 results from an estimated 3 matches for "default_net_map".

2010 May 04
2
[PATCH 1/2] Config: NFC: always create and pass round a Config object
We previously wouldn't create a Config object if no config file was specified. This change ensures that a Config object is always created, but will do nothing interesting if there is no config file. Apart from being slightly cleaner, this allows information provided by Config to be later supplied from the command line instead. --- lib/Sys/VirtV2V/Config.pm | 34
2010 May 26
1
[PATCH] Fix error in Converter::Windows when there is no transfer iso
...gt;{transfer_mounted} = 1; + + # We'll need this to unmount in DESTROY + $self->{g} = $g; + } + } + + return File::Spec->catfile($self->{transfer_mount}, $path); +} + sub _get_search { my ($desc, $name, $arch) = @_; @@ -458,6 +496,19 @@ sub set_default_net_mapping $self->{default_net_mapping} = [ $name, $type ]; } +sub DESTROY +{ + my $self = shift; + + my $g = $self->{g}; + + # Remove the transfer mount point if it was used + $g->umount($self->{transfer_mount}) + if(defined($self->{transfer_mounted})); + $g-&...
2010 Jun 17
2
[PATCH] Improve cleanup of libguestfs handle with Sys::VirtV2V::GuestfsHandle
...the transfer mount point before the guestfs + # handle is closed + $g->add_on_close(sub { + $g->umount($self->{transfer_mount}); + $g->rmdir($self->{transfer_mount}); + }); } } @@ -498,19 +501,6 @@ sub set_default_net_mapping $self->{default_net_mapping} = [ $name, $type ]; } -sub DESTROY -{ - my $self = shift; - - my $g = $self->{g}; - - # Remove the transfer mount point if it was used - $g->umount($self->{transfer_mount}) - if(defined($self->{transfer_mounted})); - $g-&...