Re: [PATCH v3 2/3] block: rust: add `discard_granularity` option to `GenDiskBuilder`
From: Andreas Hindborg
Date: Fri Dec 04 2026 - 08:57:26 EST
"Vitaly Wool" <vitaly.wool@xxxxxxxxxxx> writes:
> From: Igor Belousov <igor.b@xxxxxxxxx>
>
> Allow Rust block drivers to set the discard granularity of their disks.
> It defaults to the physical block size, which is too small for drivers
> that can only deallocate larger units: the block layer splits discards
> larger than the maximum discard size at multiples of the granularity,
> so with a granularity smaller than the driver's unit, a split can fall
> in the middle of a unit that neither part then covers in full.
>
> Signed-off-by: Igor Belousov <igor.b@xxxxxxxxx>
> Signed-off-by: Vitaly Wool <vitaly.wool@xxxxxxxxxxx>
Seems I got it anyway, it is just missing the In-reply-to header or something.