]> git.proxmox.com Git - qemu-server.git/commitdiff
switch order of disk checks
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 24 Jun 2016 07:46:35 +0000 (09:46 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 30 Jun 2016 09:55:21 +0000 (11:55 +0200)
to make log message more meaningful.
'storage' < 'snapshot' < 'config'

PVE/QemuMigrate.pm

index 3b861a57c1cadb77d386941ce241e0add7625514..b72087be9d00a3458b14b6ac5fbfbc49705b8ee1 100644 (file)
@@ -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') {