[pve-devel] [PATCH qemu-server 5/5] drop unncessary cdromhash
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Jun 17 16:12:29 CEST 2016
---
PVE/QemuMigrate.pm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index e7a1d8a..1305b5c 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -225,7 +225,6 @@ sub sync_disks {
eval {
my $volhash = {};
- my $cdromhash = {};
my $sharedvm = 1;
@@ -261,7 +260,6 @@ sub sync_disks {
if ($is_cdrom) {
die "can't migrate local cdrom drive\n" if $volid eq 'cdrom';
return if $volid eq 'none';
- $cdromhash->{$volid} = 1;
}
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
@@ -274,7 +272,7 @@ sub sync_disks {
$sharedvm = 0;
- die "can't migrate local cdrom '$volid'\n" if $cdromhash->{$volid};
+ die "can't migrate local cdrom '$volid'\n" if $is_cdrom;
my ($path, $owner) = PVE::Storage::path($self->{storecfg}, $volid);
--
2.1.4
More information about the pve-devel
mailing list