[pve-devel] [PATCH qemu-server v2 16/18] machine: rename machine_version() function to machine_version_at_least()

Fiona Ebner f.ebner at proxmox.com
Fri Jan 17 14:33:31 CET 2025


Am 17.01.25 um 13:39 schrieb Thomas Lamprecht:
> Am 16.01.25 um 12:50 schrieb Fiona Ebner:
>> diff --git a/PVE/QemuServer/Machine.pm b/PVE/QemuServer/Machine.pm
>> index 9b18cf6e..6398e756 100644
>> --- a/PVE/QemuServer/Machine.pm
>> +++ b/PVE/QemuServer/Machine.pm
>> @@ -136,7 +136,7 @@ sub extract_version {
>>      return;
>>  }
>>  
>> -sub machine_version {
>> +sub machine_version_at_least {
> 
> maybe use the chance and prefix with is_ to make this even more clear, i.e.
> is_version_at_least or to be very verbose: is_version_greater_or_equal (no
> hard feelings there though).

Okay, but I'd rather not drop the "machine" from the function name. We
have a lot of different versions floating around so even though this is
already in the machine module, I'd still like to mention it explicitly
in the function name to reduce potential for accidental re-use for other
kinds of versions.




More information about the pve-devel mailing list