Merge pull request #305 from elupus/patch-1

Add consistency checks for SPIFFS operations
This commit is contained in:
Peter Andersson
2026-06-18 17:26:46 +02:00
committed by GitHub
+3
View File
@@ -1152,10 +1152,13 @@ s32_t SPIFFS_check(spiffs *fs) {
SPIFFS_LOCK(fs);
res = spiffs_lookup_consistency_check(fs, 0);
SPIFFS_API_CHECK_RES_UNLOCK(fs, res);
res = spiffs_object_index_consistency_check(fs);
SPIFFS_API_CHECK_RES_UNLOCK(fs, res);
res = spiffs_page_consistency_check(fs);
SPIFFS_API_CHECK_RES_UNLOCK(fs, res);
res = spiffs_obj_lu_scan(fs);