You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is a symptom of #27. A big limitation of littlefs right now is that file updates require rewriting all trailing data. In your case, this appears to be the entire ~4MiB file.
Operations in littlefs are also copy-on-write, which means littlefs needs to hold both the original copy and new copy of the file in storage until the metadata is written to disk. This means littlefs needs 2x4MiB = 8MiB of storage to complete this operation. Unfortunately you have exactly 2048*4096 = 8MiB, which, because of an extra couple blocks for metadata won't be enough to complete the operation.
So I think the error is correct, due to other issues in littlefs.
This shouldn't happen when #27 is fixed. If the file data-structure allowed random updates of single blocks, then we would only need to hold copies of those blocks while updating metadata, not the whole file.
Unfortunately this is how things are at the moment.
issue:
recurrence:
The text was updated successfully, but these errors were encountered: