diff --git a/Makefile b/Makefile index 016831e6..91b8d8ed 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.1 VERSION=2.0 PACKAGE=qemu-server -PKGREL=43 +PKGREL=44 DESTDIR= PREFIX=/usr diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index f5e7c1b5..1b1e1f2b 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -177,9 +177,10 @@ sub sync_disks { my $volhash = {}; my $cdromhash = {}; - my $ids = $self->{storecfg}->{ids}; - foreach my $storeid (keys %$ids) { - next if $ids->{$storeid}->{shared}; + my @sids = PVE::Storage::storage_ids($self->{storecfg}); + foreach my $storeid (@sids) { + my $scfg = PVE::Storage::storage_config($self->{storecfg}, $storeid); + next if $scfg->{shared}; # get list from PVE::Storage (for unused volumes) my $dl = PVE::Storage::vdisk_list($self->{storecfg}, $storeid, $vmid); PVE::Storage::foreach_volid($dl, sub { diff --git a/changelog.Debian b/changelog.Debian index 6e434d18..a4408120 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +qemu-server (2.0-44) unstable; urgency=low + + * migrate: only scan necessary storage for unused volumes + + -- Proxmox Support Team Mon, 16 Jul 2012 06:59:23 +0200 + qemu-server (2.0-43) unstable; urgency=low * use new QMPClient code