diff options
author | Marek Vasut | 2023-08-14 01:48:45 +0200 |
---|---|---|
committer | Tom Rini | 2023-08-22 15:17:52 -0400 |
commit | e2b5cc608b23418d5bcd5e2fe0b5d93593d02e97 (patch) | |
tree | f3a78e90fa17789164827111b166804ad3cea042 /include/blk.h | |
parent | 3f9cff669bbc4ed48ede1705fbaf671f3f4ce0e1 (diff) |
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: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/blk.h')
0 files changed, 0 insertions, 0 deletions