Re: [RESEND PATCH] dm-ebs: Mark full buffer dirty even on partial write

Christoph Hellwig
2025-11-18T12:46:29Z

On Tue, Nov 18, 2025 at 01:40:28PM +0100, Uladzislau Rezki wrote:
> > If logical < physical, then the device performs read-modify-write cycle
> > when writing blocks that are not aligned at physical block size.
> >
> This is not true. It depends on your device and specification. If it
> can't there is the dm-ebs that does the job.

Logical blocks size is the access unit. Physical block size is a hint
that the device might be doing RWF and thus be slow. What driver/device
are using? Whatever it is doing is completely broken.

(that being said aligning things to the physical block size as much
as possible is usually still a good optimization, that's why the
value exists).