On Sun, 13 Aug 2023 at 17:49, Marek Vasut
<[email protected]> wrote:
>
> Block devices with 4k sectors imply the MBR sectors are also 4k instead
> of regular 512B. Avoid hard-coding the 512B sector size and isntead read
> the current block device sector size from it, and if the sector size is
> larger than 512B, use the block device sector size.
>
> Signed-off-by: Marek Vasut <[email protected]>
> ---
> Cc: Simon Glass <[email protected]>
> ---
>  disk/part_dos.c | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to