[pve-devel] [PATCH qemu-server 2/4] switch order of disk checks

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Jun 24 09:46:35 CEST 2016


to make log message more meaningful.
'storage' < 'snapshot' < 'config'
---
 PVE/QemuMigrate.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 3b861a5..b72087b 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -302,12 +302,12 @@ sub sync_disks {
 	    &$test_volid($drive->{file}, PVE::QemuServer::drive_is_cdrom($drive), $snapname);
 	};
 
-	PVE::QemuServer::foreach_drive($conf, $test_drive);
 	foreach my $snapname (keys %{$conf->{snapshots}}) {
 	    &$test_volid($conf->{snapshots}->{$snapname}->{'vmstate'}, 0, undef)
 		if defined($conf->{snapshots}->{$snapname}->{'vmstate'});
 	    PVE::QemuServer::foreach_drive($conf->{snapshots}->{$snapname}, $test_drive, $snapname);
 	}
+	PVE::QemuServer::foreach_drive($conf, $test_drive);
 
 	foreach my $vol (sort keys %$volhash) {
 	    if ($volhash->{$vol} eq 'storage') {
-- 
2.1.4





More information about the pve-devel mailing list