search for: transfer_mount

Displaying 7 results from an estimated 7 matches for "transfer_mount".

2010 May 26
1
[PATCH] Fix error in Converter::Windows when there is no transfer iso
...urn the path to I<path> as accessible by the libguestfs appliance. This +function will also ensure that the transfer iso is mounted. + +=cut + +sub get_transfer_path +{ + my $self = shift; + my ($g, $path) = @_; + + # Check that the transfer iso is mounted + if (!exists($self->{transfer_mount})) { + # Existing code expects the mount to exist, but handles the case where + # files in it don't exist. Therefore we always create the mount point, + # but only mount anything on it if there's actually a transfer iso. + + # Create the transfer mount point +...
2010 Jun 17
2
[PATCH] Improve cleanup of libguestfs handle with Sys::VirtV2V::GuestfsHandle
...git a/lib/Sys/VirtV2V/Config.pm b/lib/Sys/VirtV2V/Config.pm index 3f689e0..761bee5 100644 --- a/lib/Sys/VirtV2V/Config.pm +++ b/lib/Sys/VirtV2V/Config.pm @@ -233,10 +233,13 @@ sub get_transfer_path my $transfer = $devices[$#devices]; $g->mount_ro($transfer, $self->{transfer_mount}); - $self->{transfer_mounted} = 1; - # We'll need this to unmount in DESTROY - $self->{g} = $g; + # Umount and remove the transfer mount point before the guestfs + # handle is closed + $g->add_on_close(sub { +...
2010 May 06
1
[PATCH v2v] Pre-convert Windows guests.
...g->match_app ($desc, "firstbootzip", $desc->{arch}); + $app = $self->_transfer_path ($app); + $g->cp ($app, $path); +} + +# Get full, local path of a file on the transfer mount +sub _transfer_path +{ + my $self = shift; + + my ($path) = @_; + + $self->_ensure_transfer_mounted(); + + return File::Spec->catfile($self->{transfer_mount}, $path); +} + +# Ensure that the transfer device is mounted. If not, mount it. +sub _ensure_transfer_mounted +{ + my $self = shift; + + # Return immediately if it's already mounted + return if(exists($self->{transf...
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...gt;{desc}; + my $distro = $desc->{distro}; + my $major = $desc->{major_version}; + my $minor = $desc->{minor_version}; + + my $files = $self->{files}; + + if(values(%$files) > 0) { + # Ensure that whatever file is returned is accessible + $self->ensure_transfer_mounted(); + + # Search for a matching entry in the file map, in descending order of + # specificity + for my $name ("$distro.$major.$minor.$arch.$label", + "$distro.$major.$minor.$label", + "$distro.$major.$arch.$lab...
2010 Feb 09
5
[PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a
2010 Feb 19
2
[PATCH 1/2] Fix remapping of block devices
...sub _configure_kernel_modules { my ($guestos, $desc, $virtio) = @_; diff --git a/lib/Sys/VirtV2V/GuestOS/RedHat.pm b/lib/Sys/VirtV2V/GuestOS/RedHat.pm index 9149cfc..6adf8b8 100644 --- a/lib/Sys/VirtV2V/GuestOS/RedHat.pm +++ b/lib/Sys/VirtV2V/GuestOS/RedHat.pm @@ -944,7 +944,7 @@ sub _ensure_transfer_mounted $g->mount_ro($transfer, $self->{transfer_mount}); } -=item remap_block_devices(map) +=item remap_block_devices(devices, virtio) See BACKEND INTERFACE in L<Sys::VirtV2V::GuestOS> for details. @@ -953,32 +953,120 @@ See BACKEND INTERFACE in L<Sys::VirtV2V::GuestOS> fo...
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a