mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-14 05:08:50 +00:00
qm rescan: skip vm state files
This commit is contained in:
parent
fe6249f496
commit
1a858769ba
1
qm
1
qm
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user