chenrun1
3f47fd767a
fs/xxfs:Replace kmm with fs heap
...
Summary:
1.Add configuration to allocate memory from the specified section
2.Replace all memory operations (kmm_) in the vfs with
fs_heap_. When FS_HEAPSIZE > 0, memory is requested for the file system by specifying a configured heap location. By default (i.e. FS_HEAPSIZE=0) fs_heap_ is equivalent to kmm_
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-10-10 15:30:41 +02:00
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
Xiang Xiao
5528c84c03
fs/partition: MBR parser should initialize blocksize field
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-27 20:23:17 -03:00
Michal Lenc
5f5ffa9380
fix compile warnings caused by incorrect variable format in print
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-05-27 18:52:01 +08:00
Jiuzhu Dong
aaf1a5e113
fs/partition: support parse mbr partition
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-10-30 01:24:09 -05:00