search for: _drivecmp

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

2010 Mar 31
1
[PATCH] Default to IDE when VirtIO isn't available
...st is renaming them. - elsif (exists($domainif{hd}) && !exists($domainif{sd}) && - !exists($guestif{hd})) - { my %map; my $letter = 'a'; + # IDE drives are presented first foreach my $old (sort { _drivecmp('hd', $a, $b) } keys(%{$domainif{hd}})) { @@ -1019,10 +1017,16 @@ sub remap_block_devices $letter++; } + # Followed by SCSI drives + foreach my $old (sort { _drivecmp('sd', $a, $b)...
2010 May 11
1
[PATCH] GuestOS: Delete blkid.tab if it's present
...ot;/dev/".$map{$name}.$part); } $g->aug_save(); + + # Delete cached (and now out of date) blkid info if it exists + foreach my $blkidtab ('/etc/blkid/blkid.tab', '/etc/blkid.tab') { + $g->rm($blkidtab) if ($g->exists($blkidtab)); + } } sub _drivecmp -- 1.6.6.1
2010 Feb 19
2
[PATCH 1/2] Fix remapping of block devices
...only sdX devices in + # fstab, the guest is renaming them. + elsif (exists($domainif{hd}) && !exists($domainif{sd}) && + !exists($guestif{hd})) + { + my %map; + + my $letter = 'a'; + foreach my $old (sort { _drivecmp('hd', $a, $b) } + keys(%{$domainif{hd}})) + { + $map{$old} = "sd$letter"; + $letter++; + } + + map { $_ = $map{$_} } @$devices; + } + + # Otherwise we leave it alone +...
2011 Apr 26
7
[PATCH 1/7] Push $desc creation into Sys::VirtConvert::Converter->convert
...gure_vmware { - my ($g, $desc) = @_; + my ($g, $desc, $apps) = @_; # Uninstall VMwareTools - foreach my $app (@{$desc->{apps}}) { + foreach my $app (@$apps) { my $name = $app->{app_name}; if ($name eq "VMwareTools") { @@ -2161,7 +2168,7 @@ sub _drivecmp sub _prepare_bootable { - my ($g, $desc, $version, @modules) = @_; + my ($g, $root, $desc, $version, @modules) = @_; # Find the grub entry for the given kernel my $initrd; @@ -2255,7 +2262,7 @@ sub _prepare_bootable # internal variable in mkinitrd, and is therefor...