mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
SPIFFS : FIXES FS corruption against high numbero f current losses, high number of files manipulation. FIXES LOG_BLOCK erasing handlers. FIXES Garbage Collector. Overall, SPIFFS should now be WAY MORE resilient to any form of misbehavior. In case of corrupted filesystem (should still be readable !), spamming 'mem spiffs check' from the client will ensure at least 2 new free 4k blocks each tile (if number of LOG_PAGE available is enough) and in the same pass will move/reorganize the LOG_PAGES of contextual blocks. Yiha
This commit is contained in:
parent
1da98c7aa6
commit
961f98c125
8 changed files with 100 additions and 69 deletions
|
@ -1518,6 +1518,10 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
test_spiffs();
|
||||
break;
|
||||
}
|
||||
case CMD_SPIFFS_CHECK: {
|
||||
rdv40_spiffs_check();
|
||||
break;
|
||||
}
|
||||
case CMD_SPIFFS_MOUNT: {
|
||||
rdv40_spiffs_lazy_mount();
|
||||
break;
|
||||
|
@ -1901,6 +1905,11 @@ void __attribute__((noreturn)) AppMain(void) {
|
|||
#ifdef WITH_FLASH
|
||||
// If flash is not present, BUSY_TIMEOUT kicks in, let's do it after USB
|
||||
loadT55xxConfig();
|
||||
|
||||
//
|
||||
// Enforce a spiffs check/garbage collection at boot so we are likely to never
|
||||
// fall under the 2 contigous free blocks availables
|
||||
rdv40_spiffs_check();
|
||||
#endif
|
||||
|
||||
for (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue