qm rescan: skip vm state files

This commit is contained in:
Dietmar Maurer 2012-09-25 10:27:35 +02:00
parent fe6249f496
commit 1a858769ba

1
qm
View File

@ -364,6 +364,7 @@ __PACKAGE__->register_method ({
foreach my $item (@{$info->{$storeid}}) {
next if !($item->{volid} && $item->{vmid});
next if $item->{vmid} ne $vmid;
next if $item->{volid} =~ m/vm-$vmid-state-/;
next if $used->{$item->{volid}};
$changes = 1;
PVE::QemuServer::add_unused_volume($conf, $item->{volid});