[pve-devel] [PATCH qemu-server 1/2] fix #6680: avoid setting nonexistent 'write-cache' option for scsi-{block, generic}
Fiona Ebner
f.ebner at proxmox.com
Wed Aug 13 12:35:08 CEST 2025
Am 13.08.25 um 12:08 PM schrieb Fabian Grünbichler:
> On August 13, 2025 10:58 am, Fiona Ebner wrote:
>> @@ -1252,6 +1254,10 @@ sub print_drivedevice_full {
>> if (my $product = $drive->{product}) {
>> $device .= ",product=$product";
>> }
>> +
>> + $has_write_cache = 1;
>
> nit: this already is the default initial value above, and we don't loop
> over devices here? so we could drop this and the comment above
Yes, but since the SCSI branch does modify it in one place, I though it
is more readable and future-proof to be explicit covering both
sub-branches for the device types.
>
>> + } else {
>
> and instead add a comment here that -block and -generic don't support
> this?
More information about the pve-devel
mailing list