incubator-nuttx/fs/partition
Takeyoshi Kikuchi f01e395b1c fs: partition: fs_mbr: fix for MBR block count calculation.
When the MBR partition size exceeds 2 GiB, a 32-bit wrap-around occurs,
causing an error in the block count calculation.

* wrong
 brw-rw-rw- 5150605312 mmcblk0
 brw-rw-rw-  629145600 mmcblk0p1
 brw-rw-rw-  225443840 mmcblk0p2 <--

* fixed
 brw-rw-rw- 5150605312 mmcblk0
 brw-rw-rw-  629145600 mmcblk0p1
 brw-rw-rw- 4520411136 mmcblk0p2 <--

Signed-off-by: Takeyoshi Kikuchi <kikuchi@centurysys.co.jp>
2024-01-14 01:29:24 -08:00
..
CMakeLists.txt cmake:complete missing changes during cmake reforming for fs 2023-09-08 21:20:16 +03:00
Kconfig
Make.defs
fs_gpt.c nxstyle: cleanup UTF-8 Unicode to ASCII 2023-09-18 11:54:17 -04:00
fs_mbr.c fs: partition: fs_mbr: fix for MBR block count calculation. 2024-01-14 01:29:24 -08:00
fs_partition.c
fs_ptable.c
fs_txtable.c
partition.h