[PATCH] disk: dos: Infer MBR partition sector size from underlying drive sector size

Tom Rini trini at konsulko.com
Wed Aug 23 16:42:38 CEST 2023


On Mon, Aug 14, 2023 at 01:48:45AM +0200, Marek Vasut 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 <marek.vasut+renesas at mailbox.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230823/10761a5f/attachment.sig>


More information about the U-Boot mailing list