spiffs: Add esp_spiffs_check() function

esp_spiffs_check() exposes SPIFFS_check() functionality to the user
This commit is contained in:
Adam Múdry
2021-10-19 16:24:53 +02:00
committed by BOT
parent 59202fe43e
commit 36db6a6681
7 changed files with 74 additions and 2 deletions

View File

@@ -84,6 +84,17 @@ esp_err_t esp_spiffs_format(const char* partition_label);
*/
esp_err_t esp_spiffs_info(const char* partition_label, size_t *total_bytes, size_t *used_bytes);
/**
* Check integrity of SPIFFS
*
* @param partition_label Same label as passed to esp_vfs_spiffs_register
* @return
* - ESP_OK if successful
* - ESP_ERR_INVALID_STATE if not mounted
* - ESP_FAIL on error
*/
esp_err_t esp_spiffs_check(const char* partition_label);
#ifdef __cplusplus
}
#endif