Skip to content
Commit e2b5cc60 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

disk: dos: Infer MBR partition sector size from underlying drive sector size



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: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 3f9cff66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment