Re: [PATCH v3] block: add check that partition length needs to be aligned with block size
From: Christoph Hellwig
Date: Wed Jun 28 2023 - 04:42:02 EST
On Wed, Jun 28, 2023 at 04:34:42PM +0000, Min Li wrote:
> I will modify the blksz to unsigned int.
> For pre-existing start/length, is it ok to change them to sector_t?
They are long long in the UAPI, which is weird but has been that way
for a long time. So I think we need checks for negative values
before they are shifted and converted to a sector_t.