mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-24 05:27:58 +00:00
cfg2cmd: push vmstate to volid list to ensure it gets also deactivated
the volume id list is only used to activate before real start and deactivate later, so use it for the vmstate file too. This not only makes config_to_command have less side effects, it also ensures that the vmstate is deactivated again Co-developed-by: Alwin Antreich <a.antreich@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
af1f1ec038
commit
8f899d734e
@ -4183,7 +4183,7 @@ sub config_to_command {
|
||||
|
||||
if (my $vmstate = $conf->{vmstate}) {
|
||||
my $statepath = PVE::Storage::path($storecfg, $vmstate);
|
||||
PVE::Storage::activate_volumes($storecfg, [$vmstate]);
|
||||
push @$vollist, $statepath;
|
||||
push @$cmd, '-loadstate', $statepath;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user