Am 23.09.2026 um 18:22 hat Andrey Drobyshev geschrieben:
> In case we're truncating an image opened with O_DIRECT, we might get
> -EINVAL on write with unaligned buffer.  In particular, when running
> iotests/298 with '-nocache' we get:
> 
> qemu-io: Failed to resize underlying file: Could not write zeros for
> preallocation: Invalid argument
> 
> Let's just allocate the buffer using qemu_blockalign0() instead.
> 
> Signed-off-by: Andrey Drobyshev <[email protected]>
> Reviewed-by: Denis V. Lunev <[email protected]>
> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>

Thanks, applied to the block branch.

Kevin


Reply via email to