-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp_littlefs_info() returns used_bytes > total_bytes #66
Comments
Thats an interesting error I haven't seen before; however, looking at the upstream lfs documentation, it has this to say about
So there doesn't seem to be an easy way to get an exact amount of used bytes in the system. A mediocre solution is to use an semi-related; I should do something similar as this PR in the arduino fork of this project. |
Thank you for the fast response. |
cool, as for now, I don't think there's really anything I can do as it's an upstream problem/design-limitation. A mitigation is I could return the |
Hi,
when using this library on an ESP Wrover, we encountered the behaviour, that the function esp_littlefs_info() returns a bigger number for used_byte than for total_bytes.
returns:
get_free_spiffs_size: total: 5238784, used: 5267456, free: 4294938624
Our usecase is opening a file and periodically (with 1Hz) appending about 250 Bytes.
Before every write we check partition size like above.
Is there perhabs some min space that should be kept free on the partition?
We cancel recording when free space is less than 20000 Bytes. Yet, this error still occurs.
Thanks in advance
Kind regards.
The text was updated successfully, but these errors were encountered: