| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Fix crash in checklost , due to reuse pointer after free.
Change-Id: Ieab784219f63a1c4fabf838c4819c9452b058a03
|
|
|
|
|
|
|
| |
The readfat call returns 1 in case of success and 0 in case of failure.
writefat now correctly checks the return value of the call.
Change-Id: I95d09ec347ac5f2f751bb40a046f2567a1694422
|
|
|
|
|
|
|
|
|
| |
When clearchain or trunc, move the fatcache to rb_free_root tree.
This way writefat will generate correct FAT table.
When clearchain or trunc, re-calculate the free sectors of
filesystem.
Change-Id: I3b480ab161db5777e6f948f780b6bdaf3ada9467
|
|
|
|
|
|
|
| |
After format all clusters are free, so don't return error.
This fixes fsck fail on clean FAT16 partitions.
Change-Id: Ib21d000eaad1f84d6182c19cbb81cd3a1d069211
|
|
|
|
|
|
|
|
|
| |
fsck_msdos will cause crash on low-memory device and 64GB
FAT32 SD cards, so change algorithm of cluster chain
organization and fix the issue that 64GB SDCARD can't
be recognized.
Change-Id: I7bcdd138ac76c7f83d9cf3a292b3a0ba8ac78efd
|
|\
| |
| |
| | |
Change-Id: Iebd91e356bec8bec29e120aea9bb10bcf02bc356
|
| |
| |
| |
| |
| | |
Change-Id: I8829a3a2c26625d7405fa0a43da1640ea5c9ffbc
Signed-off-by: Mike Lockwood <lockwood@google.com>
|
|/
|
|
|
|
|
|
|
|
|
|
| |
From SD Specifications Part2 - File System
For Next Free Cluster, value FFFFFFFFh indicates that there exists
no information about the first available (free) cluster. It is a
valid value. However fat.c doesn't check the value before use it
as array index. This will cause fsck_msdos coredump with some
micro sd cards
Change-Id: Ibdec1655399d95c3ca98a4f4aaed1fd9bf459f33
Signed-off-by: Ethan <ethan.too@gmail.com>
|
|
|
|
|
|
|
|
| |
chain, clear it.
Also, use exit code 4 when the FS has been modified in someway.
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
Signed-off-by: San Mehat <san@google.com>
|