[pve-devel] [PATCH qemu-server 3/3] fix #6007: template backup: use minimized configuration for handling the full vm start

Fiona Ebner f.ebner at proxmox.com
Fri Jan 24 11:47:39 CET 2025


Am 24.01.25 um 11:23 schrieb Fiona Ebner:
>> @@ -4017,7 +4018,7 @@ sub config_to_command {
>>  	push @$cmd, @$aa;
>>      }
>>  
>> -    return wantarray ? ($cmd, $vollist, $spice_port, $pci_devices) : $cmd;
>> +    return wantarray ? ($cmd, $vollist, $spice_port, $pci_devices, $conf) : $cmd;
>>  }
>>  
> 
> Hmm, thinking about it again, to reduce regression potential, we could
> also just return the temporary config if it was actually required and
> have the caller only assign it when really present.

Although I suppose it doesn't really give us anything after all. I was
worried a bit about things like potential auto-vivification, but since
we already use the original $conf hash ref throughout the function
(except in the template case), such things would already affect the caller.




More information about the pve-devel mailing list